aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Tokens.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-08-18 13:57:16 +0100
committerStruan Donald <struan@exo.org.uk>2011-08-18 13:57:16 +0100
commit01750786cc7f8d13f939eb75284f1d805673effe (patch)
treeed7595d2a3e4b0faebeba6620ff5ef93519df03f /perllib/FixMyStreet/App/Controller/Tokens.pm
parent3b5d561700b184c20e63111d4cbc1daab78e16c6 (diff)
remove hard coded references to fixed
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Tokens.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm
index 26a1a1459..1ebf35652 100644
--- a/perllib/FixMyStreet/App/Controller/Tokens.pm
+++ b/perllib/FixMyStreet/App/Controller/Tokens.pm
@@ -75,7 +75,7 @@ sub confirm_problem : Path('/P') {
$c->authenticate( { email => $problem->user->email }, 'no_password' );
$c->set_session_cookie_expire(0);
- if ( $old_state eq 'confirmed' || $old_state eq 'fixed' ) {
+ if ( FixMyStreet::DB::Result::Problem->visible_states()->{$old_state} == 1 ) {
my $report_uri = $c->uri_for( '/report', $problem->id );
$c->res->redirect($report_uri);
}