aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index 854f6da89..abe8796b5 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -187,10 +187,13 @@ sub open311_config {
# make sure we have last_name attribute present in row's extra, so
# it is passed correctly to Bromley as attribute[]
- if ( $row->cobrand ne 'bromley' ) {
+ if (!$row->get_extra_field_value('last_name')) {
my ( $firstname, $lastname ) = ( $row->name =~ /(\S+)\.?\s+(.+)/ );
push @$extra, { name => 'last_name', value => $lastname };
}
+ if (!$row->get_extra_field_value('fms_extra_title') && $row->user->title) {
+ push @$extra, { name => 'fms_extra_title', value => $row->user->title };
+ }
$row->set_extra_fields(@$extra);