diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-05-17 11:22:37 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-05-17 11:22:37 +0100 |
commit | d0dfb6a70fcb7461e8f37197edb3f1deecbac9a0 (patch) | |
tree | bd636f0f8579253c93c7fed35e5751cced692007 | |
parent | 77f635378e294cc690f7a580966750b32efe98d2 (diff) |
whoops should be checking cobrand moniker, not cobrand object
-rwxr-xr-x | bin/send-reports | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports index b7a6b9571..1b29591da 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -342,8 +342,9 @@ while (my $row = $unsent->next) { $row->user->name( $row->user->id . ' ' . $row->user->name ); } - if ($cobrand eq 'fixmybarangay') { + if ($cobrand->moniker eq 'fixmybarangay') { # FixMyBarangay endpoints expect external_id as an attribute + # TODO: nice if this was indicated in the open311conf entry? $row->extra( [ { 'name' => 'external_id', 'value' => $row->id } ] ); } @@ -354,7 +355,7 @@ while (my $row = $unsent->next) { $row->discard_changes(); } - if ($cobrand eq 'fixmybarangay') { + if ($cobrand->moniker eq 'fixmybarangay') { $row->discard_changes(); } |