diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-03-29 16:23:13 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-03-29 16:23:13 +0100 |
commit | 775e3cf0521d8de279826b34f570a5fa0859dad2 (patch) | |
tree | 85766e2126001a4ef5fdf8a69b0ee21a76e522e4 /perllib/FixMyStreet/App | |
parent | 28b9f1b3bb54cebbe1236a9f29539fc4544c4061 (diff) |
[fixmystreet.com] Fix for two-tier unresponsive.
Make sure the unresponsive message shows, if you're in a two-tier area
and one of the areas is marked as unresponsive, for all the categories
of that area.
Diffstat (limited to 'perllib/FixMyStreet/App')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 66dc20a3a..f9762662c 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -655,8 +655,10 @@ sub setup_categories_and_bodies : Private { $category_extras{ $contact->category } = $metas if scalar @$metas; + my $body_send_method = $bodies{$contact->body_id}->send_method || ''; $c->stash->{unresponsive}{$contact->category} = $contact->body_id - if $contact->email =~ /^REFUSED$/i; + if !$c->stash->{unresponsive}{ALL} && + ($contact->email =~ /^REFUSED$/i || $body_send_method eq 'Refused'); $non_public_categories{ $contact->category } = 1 if $contact->non_public; } |