aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-19 18:00:39 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-19 18:00:39 +0100
commit1924271f0a93edb6cfc16d3ee3087939e89a65a9 (patch)
treed2316ee71ea70be60b4393530a9248ceda38e58c /perllib/FixMyStreet/App/Controller/Report/Update.pm
parent70a2f78eff9fd792c7cb04997bffd48858723917 (diff)
display error if bad photo upload
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index e1e90bb93..61ca28184 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -189,7 +189,10 @@ sub check_for_errors : Private {
delete $field_errors{name};
# all good if no errors
- return 1 unless scalar keys %field_errors;
+ return 1
+ unless ( scalar keys %field_errors
+ || scalar @{ $c->stash->{errors} }
+ || $c->stash->{photo_error} );
$c->stash->{field_errors} = \%field_errors;