diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-08 09:51:04 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-14 14:36:50 +0100 |
commit | f61ec9231b8562f27248ae2ba564bd809c54099a (patch) | |
tree | bbc96e69c82d1285cd494a39874b4830d48e57e3 | |
parent | ad7833e96ae4642d243194b7928cfada1e781a5e (diff) |
[Isle of Wight] Allow pagination of triaged categories.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 6 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/IsleOfWight.pm | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 72ba51dd8..e830b10b2 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -99,11 +99,7 @@ sub munge_load_and_group_problems { return unless $where->{category} && $self->{c}->stash->{body}->name eq 'Isle of Wight Council'; - my $cat_names = $self->expand_triage_cat_list($where->{category}); - - $where->{category} = $cat_names; - my $problems = $self->problems->search($where, $filter); - return $problems; + $where->{category} = $self->expand_triage_cat_list($where->{category}); } sub expand_triage_cat_list { diff --git a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm index 6a719604d..26e3ba474 100644 --- a/perllib/FixMyStreet/Cobrand/IsleOfWight.pm +++ b/perllib/FixMyStreet/Cobrand/IsleOfWight.pm @@ -173,11 +173,7 @@ sub munge_load_and_group_problems { return unless $where->{category}; - my $cat_names = $self->expand_triage_cat_list($where->{category}); - - $where->{category} = $cat_names; - my $problems = $self->problems->search($where, $filter); - return $problems; + $where->{category} = $self->expand_triage_cat_list($where->{category}); } sub munge_around_filter_category_list { |