aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-07 13:41:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-07 13:41:30 +0100
commit0801b544777b92d01278321ac250045938fa7595 (patch)
tree522efcc642c49e4d44a18fe9b66b2fa66b4c9bd6 /perllib/FixMyStreet/DB/Result/Problem.pm
parent77ae49afb00e1dc1bd528f179ac0b32512feae3d (diff)
parentf2c893ed4a773d3658b5645ef4329689a8b908f1 (diff)
Merge branch '1202-improve-gettext-extract-and-more'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm7
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;