diff options
Diffstat (limited to 'bin/send-reports')
-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(); } |