diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-19 18:36:24 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-19 18:36:24 +0100 |
commit | f0e1ae8ad567b5360577f0e18237fa00056e4073 (patch) | |
tree | 2159bffe991faaf9c3b4b18d2d99562ae3c0df93 | |
parent | f0265de6d0d2ed9326c6871c7bd38822c6598289 (diff) |
fix stupid mistakes
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index 4611e9129..105bf9993 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -150,7 +150,7 @@ sub process_update : Private { mark_fixed => $params{fixed} ? 't' : 'f', cobrand => $c->cobrand->moniker, cobrand_data => $c->cobrand->extra_update_data, - lang => $c->stash->{lang}, + lang => $c->stash->{lang_code}, } ); @@ -192,7 +192,7 @@ sub check_for_errors : Private { # all good if no errors return 1 unless ( scalar keys %field_errors - || scalar @{ $c->stash->{errors} } + || ( $c->stash->{errors} && scalar @{ $c->stash->{errors} } ) || $c->stash->{photo_error} ); $c->stash->{field_errors} = \%field_errors; |