diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-18 17:31:08 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-18 17:31:08 +0000 |
commit | fb5c4645d9749cf1379cbb05f9cea1545f216085 (patch) | |
tree | a6be9bee93290b3ddfebb5ba46e585b94de72d17 | |
parent | 6be9cff9ac5c5749b379e2fa7ac57e1e3e5d3146 (diff) |
Check council string rather than cobrand, so works on non-cobranded reports.
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index feca81d43..dbfe8e9c8 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -582,7 +582,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->cobrand eq 'oxfordshire')) { + ($self->send_method_used eq 'barnet' || $self->council =~ /2237/)) { return 1; } return 0; @@ -602,7 +602,7 @@ sub processed_summary_string { my ( $problem, $c ) = @_; my ($duration_clause, $external_ref_clause); if ($problem->whensent) { - $duration_clause = $problem->duration_string($c) + $duration_clause = $problem->duration_string($c); } if ($problem->can_display_external_id) { if ($duration_clause) { |