aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-06-18 17:32:44 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-19 16:25:50 +0100
commit7699229ed49ce2a71dff259b94fc9e089abb6c6c (patch)
treee056cb3fe4e24ef7c9dd5ea2d50c49f434a988c3
parentbb3d2df3d3d1caf6107d56ab4ed0dd21048df755 (diff)
Use body_handler hook finding cobrand in SendReport::Email.
-rw-r--r--perllib/FixMyStreet/SendReport/Email.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm
index 583aaaa08..079f8ba68 100644
--- a/perllib/FixMyStreet/SendReport/Email.pm
+++ b/perllib/FixMyStreet/SendReport/Email.pm
@@ -72,6 +72,8 @@ sub send {
my ($verbose, $nomail) = CronFns::options();
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new();
+ $cobrand = $cobrand->call_hook(get_body_handler_for_problem => $row) || $cobrand;
+
my $params = {
To => $self->to,
};