diff options
author | Dave Arter <davea@mysociety.org> | 2017-05-30 11:40:30 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-05-30 11:40:30 +0100 |
commit | 655d6b3728f89bdd670b9b08847172d2321f63d7 (patch) | |
tree | caade769a16526a6a0268b560775a5989bcb43eb /perllib | |
parent | 565b32d48bb364ec7097faff01a2eabb336e72c9 (diff) |
[Bromley] Restore staff update function
The Bromley update form needed to be updated to use the new <select> template.
This also fixes a situation where staff users (on all cobrands) wouldn't be able
to leave updates on problems with state 'fixed - user'.
Diffstat (limited to 'perllib')
-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 81a50dfa2..261a49ec1 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -342,7 +342,8 @@ sub check_for_errors : Private { my ( $self, $c ) = @_; # they have to be an authority user to update the state - if ( my $state = $c->get_param('state') ) { + my $state = $c->get_param('state'); + if ( $state && $state ne $c->stash->{update}->problem->state ) { my $error = 0; $error = 1 unless $c->user && $c->user->belongs_to_body( $c->stash->{update}->problem->bodies_str ); $error = 1 unless grep { $state eq $_ } FixMyStreet::DB::Result::Problem->council_states(); |