aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-10-25 13:49:11 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-10-25 13:49:11 +0100
commit5b1520f738a362b5c6a0def5b5d322a728df3951 (patch)
tree93a10ae5ea8b0f91f91ea54233731c78157161ca /perllib/FixMyStreet/App/Controller/Admin.pm
parent604d306f4fc0f0024fc9a493f391413811dfbb3f (diff)
Set confirmed timestamp on any admin unconfirmed state change.
This fixes #527.
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 6264d1a73..0c81a8750 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -760,7 +760,7 @@ sub report_edit : Path('report_edit') : Args(1) {
$problem->photo(undef);
}
- if ( $new_state eq 'confirmed' and $old_state eq 'unconfirmed' ) {
+ if ( $problem->is_visible() and $old_state eq 'unconfirmed' ) {
$problem->confirmed( \'ms_current_timestamp()' );
}