aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
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
parentf9f9e7745f71d766757e243d9d48b146c750358d (diff)
Missed some council references.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm2
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index d9a2a0273..5bde902d4 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -669,7 +669,7 @@ sub body {
sub can_display_external_id {
my $self = shift;
if ($self->external_id && $self->send_method_used &&
- ($self->send_method_used eq 'barnet' || $self->council =~ /2237/)) {
+ ($self->send_method_used eq 'barnet' || $self->bodies_str =~ /2237/)) {
return 1;
}
return 0;
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;
}