aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm9
-rw-r--r--perllib/Open311/GetServiceRequestUpdates.pm2
2 files changed, 6 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 27613c1c8..24d6d3966 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -190,7 +190,6 @@ sub open_states {
'investigating' => 1,
'planned' => 1,
'in progress' => 1,
- 'in progress' => 1,
'action scheduled' => 1,
};
@@ -231,7 +230,7 @@ sub closed_states {
my $states = {
'closed' => 1,
'unable to fix' => 1,
- 'not councils responsibility' => 1,
+ 'not responsible' => 1,
'duplicate' => 1,
};
@@ -260,7 +259,7 @@ sub visible_states {
'fixed - council' => 1,
'fixed - user' => 1,
'unable to fix' => 1,
- 'not councils responsibility' => 1,
+ 'not responsible' => 1,
'duplicate' => 1,
'closed' => 1,
};
@@ -292,7 +291,7 @@ sub all_states {
'fixed - council' => 1,
'fixed - user' => 1,
'unable to fix' => 1,
- 'not councils responsibility' => 1,
+ 'not responsible' => 1,
'duplicate' => 1,
'closed' => 1,
};
@@ -318,7 +317,7 @@ sub council_states {
'action scheduled' => 1,
'fixed - council' => 1,
'unable to fix' => 1,
- 'not councils responsibility' => 1,
+ 'not responsible' => 1,
'duplicate' => 1,
};
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm
index 2af128ec7..c9bb7a91b 100644
--- a/perllib/Open311/GetServiceRequestUpdates.pm
+++ b/perllib/Open311/GetServiceRequestUpdates.pm
@@ -99,6 +99,8 @@ sub update_comments {
my $incoming_status = lc( $request->{status} );
my $internal_status = $incoming_status;
$internal_status =~ s/_/ /g;
+
+ $internal_status = 'not responsible' if $internal_status eq 'not councils responsibility';
if ( $p->is_open and ( $incoming_status eq 'closed' or $incoming_status eq 'fixed' ) ) {
$p->state( 'fixed - council' );
$comment->problem_state( 'fixed - council' );