aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
commit91859b4f7df490001df3a54067fc01929cb0490f (patch)
treeb6b36117e2e30d80f926e40aea7f3723b61ae4df /perllib/FixMyStreet/App/Controller/Admin.pm
parentf66b805206f7e28d96161fa9abc077c0a9d60b2c (diff)
parent491d21469a34b028c00eed7a0f26ff7f3725dcb0 (diff)
Merge remote-tracking branch 'origin/master' into phonegap
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 0e34ea64b..83f77f401 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -627,10 +627,6 @@ sub report_edit : Path('report_edit') : Args(1) {
$problem->photo(undef);
}
- if ( $new_state ne $old_state ) {
- $problem->lastupdate( \'ms_current_timestamp()' );
- }
-
if ( $new_state eq 'confirmed' and $old_state eq 'unconfirmed' ) {
$problem->confirmed( \'ms_current_timestamp()' );
}
@@ -639,6 +635,7 @@ sub report_edit : Path('report_edit') : Args(1) {
$problem->discard_changes;
}
else {
+ $problem->lastupdate( \'ms_current_timestamp()' ) if $edited || $new_state ne $old_state;
$problem->update;
if ( $new_state ne $old_state ) {