diff options
-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 03623259c..bbf1bc626 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -285,7 +285,7 @@ sub by_category_ajax_data : Private { if ( $c->stash->{category_extras}->{$category} && @{ $c->stash->{category_extras}->{$category} } >= 1 ) { my $disable_form = $c->forward('disable_form_message'); - $body->{disable_form} = $disable_form if $disable_form; + $body->{disable_form} = $disable_form if %$disable_form; } my $unresponsive = $c->stash->{unresponsive}->{$category}; |