diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-08 23:02:37 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-14 16:03:30 +0100 |
commit | 426bc926a422af21ff39cebed836d34e46238500 (patch) | |
tree | 02d43a11dae6cbfc443eb5476c6c708f1eb52377 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | 466c5cac0f000bfa80ab49c88ec6e03c388ac328 (diff) |
Only use active categories for making new reports.
Inactive ones can still be used for e.g. list filtering,
but not when making a new report.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 1d322e88c..3acb385bd 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -605,7 +605,7 @@ sub setup_categories_and_bodies : Private { my $contacts # = $c # ->model('DB::Contact') # - ->not_deleted # + ->active ->search( { body_id => [ keys %bodies ] } ); my @contacts = $c->cobrand->categories_restriction($contacts)->all; |