aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Open311.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-04 07:34:25 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-04 07:34:25 +0000
commitd46cf8c5c8f292e1121f5d07ab3772f62c6bacd6 (patch)
treef3fd1aee6918b3fbe6598aecf8f3df29df4eb25d /perllib/FixMyStreet/SendReport/Open311.pm
parentf9f9e7745f71d766757e243d9d48b146c750358d (diff)
Missed some council references.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Open311.pm')
-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 1b79bcc99..2ed5bc78b 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -76,7 +76,7 @@ sub send {
}
# extra Oxfordshire fields: send nearest street, postcode, northing and easting, and the FMS id
- if ( $row->council =~ /$COUNCIL_ID_OXFORDSHIRE/ ) {
+ if ( $row->bodies_str =~ /$COUNCIL_ID_OXFORDSHIRE/ ) {
my $extra = $row->extra;
push @$extra, { name => 'external_id', value => $row->id };
@@ -113,7 +113,7 @@ sub send {
}
# non-standard Oxfordshire endpoint (because it's just a script, not a full Open311 service)
- if ( $row->council =~ /$COUNCIL_ID_OXFORDSHIRE/ ) {
+ if ( $row->bodies_str =~ /$COUNCIL_ID_OXFORDSHIRE/ ) {
$open311->endpoints( { requests => 'open311_service_request.cgi' } );
$revert = 1;
}