aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-22 16:22:42 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-29 09:52:03 +0100
commitb43dbace0f747897640920e4cf9adb55b84bc2c8 (patch)
treeeb94892223882330b37f1e38ddd90a9f90710082 /perllib/FixMyStreet/App/Controller/Report/Update.pm
parent4ca7c78c3a3edabbb7466bfd7d519be83d11a89a (diff)
Drop council_states and $visible_states.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/Update.pm2
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.');