aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-05-17 11:22:37 +0100
committerDave Whiteland <dave@mysociety.org>2012-05-17 11:22:37 +0100
commitd0dfb6a70fcb7461e8f37197edb3f1deecbac9a0 (patch)
treebd636f0f8579253c93c7fed35e5751cced692007
parent77f635378e294cc690f7a580966750b32efe98d2 (diff)
whoops should be checking cobrand moniker, not cobrand object
-rwxr-xr-xbin/send-reports5
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();
}