aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-20 12:00:24 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-20 12:00:24 +0100
commit0a2075c106083b6b3b7c8b37b04df9b155aed1fb (patch)
tree87c8f6de218d197cf29622168ef6eb280ee8d632
parent04d1f881b15315bcc7d8cc02cab31cbce36cd8e9 (diff)
display problems with update error message
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm
index 999bd08ff..38a7a3909 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -147,6 +147,10 @@ sub check_for_errors : Private {
$c->stash->{field_errors} = \%field_errors;
+ $c->stash->{errors} ||= [];
+ push @{ $c->stash->{errors} },
+ _('There were problems with your update. Please see below.');
+
return;
}