diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-15 16:37:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-15 16:37:57 +0000 |
commit | 69bcc1d99421a333a0ac8e764b1d259ffe24e5a3 (patch) | |
tree | d32120673433e509dc3b1d0d416171694f9e6294 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | ee6c5edc9252effe4b056cdea77db8efe08af314 (diff) |
Store Zurich external body in external_body rather than changing bodies_str.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 1a13ca2f4..20b79167f 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -557,7 +557,11 @@ sub body { my ( $problem, $c ) = @_; my $body; if ($problem->external_body) { - $body = $problem->external_body; + if ($problem->cobrand eq 'zurich') { + $body = $c->model('DB::Body')->find({ id => $problem->external_body }); + } else { + $body = $problem->external_body; + } } else { my $bodies = $problem->bodies; $body = join( _(' and '), |