diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-20 12:00:24 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-20 12:00:24 +0100 |
commit | 0a2075c106083b6b3b7c8b37b04df9b155aed1fb (patch) | |
tree | 87c8f6de218d197cf29622168ef6eb280ee8d632 | |
parent | 04d1f881b15315bcc7d8cc02cab31cbce36cd8e9 (diff) |
display problems with update error message
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 4 |
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; } |