diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-02 12:14:22 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-02 13:27:21 +0100 |
commit | 83d89e76fd1c6f699daeb986ae8f8a481336253e (patch) | |
tree | e90e085ca3bd6a0128fcf15d5b5c5f1ab624155d /perllib/Open311/GetServiceRequestUpdates.pm | |
parent | 3523421e0c6d99ab4f0d7bfd942b9a70a4b9d90c (diff) |
[Oxfordshire] Open311 update, no open state switch
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 0751092fb..30db24164 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -143,6 +143,9 @@ sub update_comments { # don't update state unless it's an allowed state and it's # actually changing the state of the problem if ( FixMyStreet::DB::Result::Problem->council_states()->{$state} && $p->state ne $state && + # For Oxfordshire, don't allow changes back to Open from other open states + !( $body->areas->{$AREA_ID_OXFORDSHIRE} && $state eq 'confirmed' && $p->is_open ) && + # Don't let it change between the (same in the front end) fixed states !( $p->is_fixed && FixMyStreet::DB::Result::Problem->fixed_states()->{$state} ) ) { if ($p->is_visible) { $p->state($state); |