aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-19 10:39:19 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-19 10:39:19 +0100
commitb3e8d609afe46e07b2ef8441f54a6f2f8255e250 (patch)
treed948cc00f030f144fe79102a0bb8c06c5d3b32fb /perllib/Open311.pm
parentbceda8f05abe5b21d42100f4de739aa6dc03c4cd (diff)
Open311 should user name from report not user
Open311 was using the name in the user table for it's reports when it should be the one in the problem table.
Diffstat (limited to 'perllib/Open311.pm')
-rw-r--r--perllib/Open311.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm
index 3be5ac365..94d81e479 100644
--- a/perllib/Open311.pm
+++ b/perllib/Open311.pm
@@ -108,7 +108,7 @@ sub _populate_service_request_params {
$description = $problem->detail;
}
- my ( $firstname, $lastname ) = ( $problem->user->name =~ /(\w+)\.?\s+(.+)/ );
+ my ( $firstname, $lastname ) = ( $problem->name =~ /(\w+)\.?\s+(.+)/ );
my $params = {
email => $problem->user->email,