diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-29 15:15:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-29 15:15:10 +0100 |
commit | 759b5ef970546c0a70fb4f8d051b1f6dd54e4d2d (patch) | |
tree | 2f76a073e1c07df40e8cec71cafef02f5d54c184 /perllib/FixMyStreet/App/Controller/Report/Update.pm | |
parent | 05c6a4b980b07a7c15b6b9727f6315d326e233a0 (diff) | |
parent | b43dbace0f747897640920e4cf9adb55b84bc2c8 (diff) |
Merge branch 'move-report-states-to-database-part-1'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index 068f393f2..033f5c017 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -351,7 +351,7 @@ sub check_for_errors : Private { 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(); + $error = 1 unless grep { $state eq $_ } FixMyStreet::DB::Result::Problem->visible_states(); if ( $error ) { $c->stash->{errors} ||= []; push @{ $c->stash->{errors} }, _('There was a problem with your update. Please try again.'); |