diff options
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index b5577ff6c..bb3583e38 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -98,19 +98,17 @@ sub update_comments { if ( $comment->created_local > $p->lastupdate_local ) { if ( $p->is_open and lc($request->{status}) eq 'closed' ) { $p->state( 'fixed - council' ); - $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->lastupdate( $comment->created ); - $p->update; $comment->mark_open( 1 ); } } + $p->lastupdate( $comment->created ); + $p->update; $comment->insert(); if ( $self->suppress_alerts ) { |