aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Alerts.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-11-26 11:44:10 +0000
committerStruan Donald <struan@exo.org.uk>2019-11-26 11:44:10 +0000
commit010964c3e56b222f39efb4b25d025e5d7f902dd6 (patch)
tree5c8a09bd878cd02e562038fa64c2d60c01c90a2b /perllib/FixMyStreet/Script/Alerts.pm
parent762bbc66969e2eb67ad062c45207e5428c63bf9c (diff)
pass cobrand name to state display from alert script
This was passing the cobrand object so the checks in State::display that were relying on the moniker were not working.
Diffstat (limited to 'perllib/FixMyStreet/Script/Alerts.pm')
-rw-r--r--perllib/FixMyStreet/Script/Alerts.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Alerts.pm b/perllib/FixMyStreet/Script/Alerts.pm
index 3d2d784b8..14d6ec479 100644
--- a/perllib/FixMyStreet/Script/Alerts.pm
+++ b/perllib/FixMyStreet/Script/Alerts.pm
@@ -97,7 +97,7 @@ sub send() {
!( $last_problem_state eq '' && $row->{item_problem_state} eq 'confirmed' ) &&
$last_problem_state ne $row->{item_problem_state}
) {
- my $state = FixMyStreet::DB->resultset("State")->display($row->{item_problem_state}, 1, $cobrand);
+ my $state = FixMyStreet::DB->resultset("State")->display($row->{item_problem_state}, 1, $cobrand->moniker);
my $update = _('State changed to:') . ' ' . $state;
$row->{item_text} = $row->{item_text} ? $row->{item_text} . "\n\n" . $update :