aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-06-28 09:34:31 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-06-28 09:34:31 +0100
commitc5556936493f11156cdc4cf3b8db28d1bf4910d3 (patch)
tree04133967049931f060b2c6b0f9ee5e59ae3a0055
parenta39cc26160b289a8d47e3ae8fe013f2441cd6606 (diff)
Only need last_name as attribute.
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm
index 52268fd91..ceb7a9f09 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -55,10 +55,10 @@ sub send {
$always_send_latlong = 0;
$send_notpinpointed = 1;
- # make sure we have first_name and last_name attributes
+ # 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' ) {
my ( $firstname, $lastname ) = ( $row->user->name =~ /(\w+)\s+(.+)/ );
- push @$extra, { name => 'first_name', value => $firstname };
push @$extra, { name => 'last_name', value => $lastname };
}