diff options
author | Dave Arter <davea@mysociety.org> | 2017-06-26 16:56:41 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-06-26 16:58:54 +0100 |
commit | 91932c3bb1584e25d8293649af71c17f564fb7fb (patch) | |
tree | e5faf67a20dfa983026547dcacf24ca310a79e2e /perllib | |
parent | bada68b27226eb2d0f119edf0fed866bd473b032 (diff) |
[UK Councils] Show all pins only on two-tiers
Fixes mysociety/fixmystreet-commercial#859
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UKCouncils.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index 0c044fb86..b82e170b6 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -53,6 +53,13 @@ sub problems_restriction { return $rs->to_body($self->body); } +sub problems_on_map_restriction { + my ($self, $rs) = @_; + # If we're a two-tier council show all problems on the map and not just + # those for this cobrand's council to reduce duplicate reports. + return $self->is_two_tier ? $rs : $self->problems_restriction($rs); +} + sub updates_restriction { my ($self, $rs) = @_; return $rs if FixMyStreet->staging_flag('skip_checks'); |