diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-27 18:29:58 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-27 18:29:58 +0100 |
commit | 7ed720d5c1b40466a21eb9a383bb8ae1b0bf1888 (patch) | |
tree | 61e0c15ff16e21296d29375ca866a203d34e76d0 /perllib/Open311/GetServiceRequestUpdates.pm | |
parent | 57440ef98d69e156832653c536422f129cb71b9d (diff) |
tests for ignoring old comment state and related fixes
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 28c7140ed..b423bbeb3 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -93,16 +93,16 @@ sub update_comments { # if the comment is older than the last update # do not change the status of the problem as it's # tricky to determine the right thing to do. - if ( $comment->created > $p->lastupdate ) { + if ( $comment->created_local > $p->lastupdate_local ) { if ( $p->is_open and lc($request->{status}) eq 'closed' ) { $p->state( 'fixed - council' ); - $p->last_update( $comment->created ); + $p->lastupdate( $comment->created ); $p->update; $comment->mark_fixed( 1 ); } elsif ( ( $p->is_closed || $p->is_fixed ) and lc($request->{status}) eq 'open' ) { $p->state( 'confirmed' ); - $p->last_update( $comment->created ); + $p->lastupdate( $comment->created ); $p->update; $comment->mark_open( 1 ); |