aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-10-29 10:36:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-10-29 10:41:25 +0000
commite1f789b83861d7f7ccac2e93db474f167ad9b904 (patch)
tree8a04d4f985ffef56d73e53ae70cfa15d4bb0f9e1
parent9dafb6998327637cea56b10d2246386d4841b453 (diff)
Do not output empty disable_form hash in ajax call.
-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 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};