diff options
author | Struan Donald <struan@exo.org.uk> | 2017-10-02 15:40:52 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-10-05 14:41:37 +0100 |
commit | 31b8008e481a1b9f9b087cdb80efe4124d9aa500 (patch) | |
tree | 443073a58c111c62f44463358dc73bc5935beea2 /perllib/FixMyStreet/DB/ResultSet/State.pm | |
parent | 20e563c0efb98747f765e69fd97dadef11b18a95 (diff) |
generate update text in alerts if problem state has changed
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/State.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/State.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/State.pm b/perllib/FixMyStreet/DB/ResultSet/State.pm index de56c738c..3e6169aeb 100644 --- a/perllib/FixMyStreet/DB/ResultSet/State.pm +++ b/perllib/FixMyStreet/DB/ResultSet/State.pm @@ -58,7 +58,7 @@ sub fixed { [ $_[0]->_filter(sub { $_->type eq 'fixed' }) ] } # This function can be used to return that label's display name. sub display { - my ($rs, $label, $single_fixed) = @_; + my ($rs, $label, $single_fixed, $cobrand) = @_; my $unchanging = { unconfirmed => _("Unconfirmed"), hidden => _("Hidden"), @@ -72,6 +72,10 @@ sub display { }; $label = 'fixed' if $single_fixed && $label =~ /^fixed - (council|user)$/; return $unchanging->{$label} if $unchanging->{$label}; + if ($cobrand && $label eq 'not responsible') { + return 'third party responsibility' if $cobrand eq 'bromley'; + return _("not the council's responsibility"); + } my ($state) = $rs->_filter(sub { $_->label eq $label }); return $label unless $state; $state->name($translate_now->{$label}) if $translate_now->{$label}; |