diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-03 16:37:27 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-04 13:34:17 +0100 |
commit | b816cd81fea58adcad5ae216b4dfe9030dad40aa (patch) | |
tree | 55c337ce183fd549037a7f3d29fcc39cc9367938 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | b191bd1e83ad0ca152afc3a1c6c7823d9f4e683c (diff) |
Deal with a variety of low-level test warnings.
* Stop red warning being output by S3 bucket creation failure test
* Make sure 'num_old_reports' is always a number on /around pages
* Stop 'category_extra' being generated when unnecessary
* Prevent warning printed in getservicerequestupdates.t
* Prevent info lines from being output in develop.t
* Remove line of #s in root.t
* And an ID diag in zurich.t
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 dd4fef388..f057a31f6 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -258,7 +258,7 @@ sub by_category_ajax_data : Private { my ($self, $c, $type, $category) = @_; my $generate; - if (($c->stash->{category_extras}->{$category} && @{ $c->stash->{category_extras}->{$category} } >= 1) or \ + if (($c->stash->{category_extras}->{$category} && @{ $c->stash->{category_extras}->{$category} } >= 1) or $c->stash->{unresponsive}->{$category} or $c->stash->{report_extra_fields}) { $generate = 1; } |