diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-03 18:40:13 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-09-03 18:40:32 +0100 |
commit | e9ec29417c32dcef3baceb9a633c8a21b0bafe93 (patch) | |
tree | 6c3700d83d2833e9f5bc8116a589895ae6f4a5b4 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | d6c6c05f4627c2b85f2ec867ff3b6c85f297e8cc (diff) |
[fixmystreet.com] Remove unused Barnet code.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 88794ee52..9706087aa 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -637,16 +637,13 @@ sub body { return $body; } -# returns true if the external id is the council's ref, i.e., useful to publish it -# (by way of an example, the barnet send method returns a useful reference when -# it succeeds, so that is the ref we should show on the problem report page). +# returns true if the external id is the council's ref, i.e., useful to publish it. # Future: this is installation-dependent so maybe should be using the contact # data to determine if the external id is public on a council-by-council basis. # Note: this only makes sense when called on a problem that has been sent! sub can_display_external_id { my $self = shift; - if ($self->external_id && $self->send_method_used && - ($self->send_method_used eq 'barnet' || $self->bodies_str =~ /2237/)) { + if ($self->external_id && $self->send_method_used && $self->bodies_str =~ /2237/) { return 1; } return 0; |