diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-01 17:42:43 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-01 17:42:43 +0100 |
commit | ba53a2c2d8189ecaeca2c0e774c6dda54579dec9 (patch) | |
tree | 5f97f0be809f11e4f3bc2998ee557a9813ca802a /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | 515190b62e24ab43e150c4d65b55c774682f2578 (diff) |
change update form to use new statuses
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index c49123a90..c3abdaf3c 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -245,7 +245,8 @@ sub check_for_errors : Private { $error = 1 unless $c->user && $c->user->belongs_to_council( $c->stash->{update}->problem->council ); my $state = $c->req->param('state'); - $error = 1 unless ( grep { $state eq $_ } ( qw/confirmed closed fixed investigating planned/, 'in progress', 'fixed', 'fixed - user', 'fixed - council' ) ); + $state = 'fixed - council' if $state eq 'fixed'; + $error = 1 unless ( grep { $state eq $_ } ( FixMyStreet::DB::Result::Problem->council_states() ) ); if ( $error ) { $c->stash->{errors} ||= []; |