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 | |
parent | b0b6810e372a154b1af7da72c1bd2143e5e251e9 (diff) | |
parent | 11d77bf4cf0a15cf47748f351139f779752395b1 (diff) |
Merge branch 'check-filter_category-on-new'
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b178919..8d7a5714b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Improved try again process on mobile. #2863 - Improve messaging/display of private reports. - Add a web manifest and service worker. #2220 + - Also check filter_category for category choice. #2893 - Admin improvements: - Add new roles system, to group permissions and apply to users. #2483 - Contact form emails now include user admin links. 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 |