aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-18 18:07:49 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-18 18:07:51 +0000
commit8957d112ca7dab397af1a08fbf392f707b5a4dee (patch)
treefd2b35a1c43bb856cc110b1327bea1cbfc277d50
parentf9b2ff83e731364f9780d42bf59bb1e4c71018f0 (diff)
[Zurich] Fix for request with empty category.
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
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 d74af5a84..166c0614d 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -957,7 +957,7 @@ sub contacts_to_bodies : Private {
my @contacts = grep { $_->category eq $category } @{$c->stash->{contacts}};
- if ($c->stash->{unresponsive}{$category} || $c->stash->{unresponsive}{ALL}) {
+ if ($c->stash->{unresponsive}{$category} || $c->stash->{unresponsive}{ALL} || !@contacts) {
[];
} else {
if ( $c->cobrand->call_hook('singleton_bodies_str') ) {