aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-01-12 16:38:59 +0000
committerStruan Donald <struan@exo.org.uk>2012-01-12 16:38:59 +0000
commite9ed87041e8c99cf069396cf2f452f1e1c7cd54f (patch)
treebaea7c971e9eb5a2797eff918e2fb3b0d40958aa /perllib/FixMyStreet/App/Controller/Admin.pm
parentc23302e01032290ddea83bee185f32c283c0362e (diff)
parent8aa957eea589c593aa8f602a208370914d99a98d (diff)
Merge remote branch 'origin/master'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index c988b23c1..04dfaf409 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -770,7 +770,7 @@ sub update_edit : Path('update_edit') : Args(1) {
# If we're hiding an update, see if it marked as fixed and unfix if so
if ( $new_state eq 'hidden' && $update->mark_fixed ) {
- if ( $update->problem->state eq 'fixed' ) {
+ if ( $update->problem->state =~ /^fixed/ ) {
$update->problem->state('confirmed');
$update->problem->update;
}