aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-07-02 12:33:53 +0100
committerStruan Donald <struan@exo.org.uk>2012-07-02 12:33:53 +0100
commitdeb369669b540f607e435390f4606b927569dded (patch)
treefc9a429ae427a37abcc810ec8d760adaf922a788
parentc5556936493f11156cdc4cf3b8db28d1bf4910d3 (diff)
if title not present in extra for a Bromley update set it from user
-rwxr-xr-xbin/send-comments12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/send-comments b/bin/send-comments
index b1c1463ce..b054ebd8f 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -69,6 +69,18 @@ while ( my $council = $councils->next ) {
next if bromley_retry_timeout( $comment );
}
+ if ( $council->area_id == 2482 ) {
+ my $extra = $comment->extra;
+ if ( !$extra ) {
+ $extra = {};
+ }
+
+ unless ( $extra->{title} ) {
+ $extra->{title} = $comment->user->title;
+ $comment->extra( $extra );
+ }
+ }
+
my $id = $o->post_service_request_update( $comment );
if ( $id ) {