aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Zurich.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-15 16:37:57 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-15 16:37:57 +0000
commit69bcc1d99421a333a0ac8e764b1d259ffe24e5a3 (patch)
treed32120673433e509dc3b1d0d416171694f9e6294 /perllib/FixMyStreet/SendReport/Zurich.pm
parentee6c5edc9252effe4b056cdea77db8efe08af314 (diff)
Store Zurich external body in external_body rather than changing bodies_str.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Zurich.pm')
-rw-r--r--perllib/FixMyStreet/SendReport/Zurich.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Zurich.pm b/perllib/FixMyStreet/SendReport/Zurich.pm
index 7bf6fe1a3..ca9e6f33e 100644
--- a/perllib/FixMyStreet/SendReport/Zurich.pm
+++ b/perllib/FixMyStreet/SendReport/Zurich.pm
@@ -9,6 +9,8 @@ sub build_recipient_list {
# Only one body ever, most of the time with an email endpoint
my $body = @{ $self->bodies }[0];
+ $body = FixMyStreet::App->model("DB::Body")->find( { id => $row->external_body } )
+ if $row->external_body;
my $body_email = $body->endpoint;
my @bodies = $body->bodies;