diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-28 10:02:34 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-28 10:02:34 +0000 |
commit | d65ce0e6b24c8302db4107290d12d8e7d5c864b9 (patch) | |
tree | 90e15134b4c198670d5cf3fdb71de29f617a8ca0 /perllib/FixMyStreet/App/Controller | |
parent | b0b6810e372a154b1af7da72c1bd2143e5e251e9 (diff) | |
parent | 11d77bf4cf0a15cf47748f351139f779752395b1 (diff) |
Merge branch 'check-filter_category-on-new'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index ef1905c98..faa02f9fe 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -1550,6 +1550,8 @@ sub check_for_category : Private { my $category = $c->get_param('category') || $c->stash->{report}->category || ''; $category = '' if $category eq _('Loading...') || $category eq _('-- Pick a category --'); + # Just check to see if the filter had an option + $category ||= $c->get_param('filter_category') || ''; $c->stash->{category} = $category; # Bit of a copy of set_report_extras, because we need the results here, but |