aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/Update.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-23 11:37:58 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-23 11:37:58 +0100
commite58b6ceae179dcf576ba394209417c9e12fadb54 (patch)
treedee2c885e03e7d29675de70e86bc18cbe3b5bbc2 /perllib/FixMyStreet/App/Controller/Report/Update.pm
parent416be1e4fda484fad30ff63604b76372d724b69f (diff)
Fix bug causing updates to always mark reports as fixed
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 91f05c32f..6ad6ffaa5 100644
--- a/perllib/FixMyStreet/App/Controller/Report/Update.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm
@@ -49,7 +49,7 @@ sub update_problem : Private {
my $update = $c->stash->{update};
my $problem = $c->stash->{problem} || $update->problem;
- if ( $update->mark_fixed ) {
+ if ( $update->mark_fixed eq 't' ) {
$problem->state( 'fixed' );
if ( $update->user->id == $problem->user->id ) {