diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Northamptonshire.pm | 13 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/UKCouncils.pm | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm index 26c8706cc..791e2f83f 100644 --- a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm +++ b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm @@ -75,19 +75,6 @@ sub problems_on_map_restriction { return $self->problems_restriction($rs); } -sub problem_state_processed { - my ($self, $comment) = @_; - - my $state = $comment->problem_state || ''; - my $code = $comment->get_extra_metadata('external_status_code') || ''; - - if ( $state eq 'investigating' and $code eq 'further' ) { - $state = 'Under further investigation'; - } - - return $state; -} - sub privacy_policy_url { 'https://www3.northamptonshire.gov.uk/councilservices/council-and-democracy/transparency/information-policies/privacy-notice/place/Pages/street-doctor.aspx' } diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index 4634f4b14..f472876ef 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -270,6 +270,19 @@ sub relative_url_for_report { return FixMyStreet->config('BASE_URL'); } +sub problem_state_processed { + my ($self, $comment) = @_; + + my $state = $comment->problem_state || ''; + my $code = $comment->get_extra_metadata('external_status_code') || ''; + + my $cfg = $self->feature('extra_state_mapping'); + + $state = ( $cfg->{$state}->{$code} || $state ) if $cfg->{$state}; + + return $state; +} + sub admin_allow_user { my ( $self, $user ) = @_; return 1 if $user->is_superuser; |