aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/GetServiceRequestUpdates.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-06-06 13:43:20 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-06-06 13:56:30 +0100
commit64aebf5ce25a40c841cabd8d484f7434eb0f0e75 (patch)
tree8b37b7827df384b6da8d08241ce7b466d3743a9a /perllib/Open311/GetServiceRequestUpdates.pm
parent01607134f1225f73a19deb001d2ccc9fcf6c58d5 (diff)
Use problem_state column rather than mark_fixed for updates from council.
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r--perllib/Open311/GetServiceRequestUpdates.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm
index bb3583e38..c30d05b22 100644
--- a/perllib/Open311/GetServiceRequestUpdates.pm
+++ b/perllib/Open311/GetServiceRequestUpdates.pm
@@ -98,12 +98,10 @@ sub update_comments {
if ( $comment->created_local > $p->lastupdate_local ) {
if ( $p->is_open and lc($request->{status}) eq 'closed' ) {
$p->state( 'fixed - council' );
-
- $comment->mark_fixed( 1 );
+ $comment->problem_state( 'fixed - council' );
} elsif ( ( $p->is_closed || $p->is_fixed ) and lc($request->{status}) eq 'open' ) {
$p->state( 'confirmed' );
-
- $comment->mark_open( 1 );
+ $comment->problem_state( 'confirmed' );
}
}