aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-29 10:29:24 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-29 10:29:24 +0000
commit85fae8594084e62e6b8357c2d31fe0d1e051460e (patch)
tree1d0e9172228c538f98ab08bafa5aea91592b04cd
parent3b301fa326dcfe1c09283ffc4c6ab34a4a4a80b8 (diff)
missing_details_bodies is an array of objects, not IDs, which we want.
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 5b53c5dbf..0ba8c5f71 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -861,7 +861,7 @@ sub process_report : Private {
# 'x,x|y' - x are body IDs that have this category, y body IDs with *no* contact
my $body_string = join( ',', map { $_->body_id } @contacts );
$body_string .=
- '|' . join( ',', @{ $c->stash->{missing_details_bodies} } )
+ '|' . join( ',', map { $_->id } @{ $c->stash->{missing_details_bodies} } )
if $body_string && @{ $c->stash->{missing_details_bodies} };
$report->bodies_str($body_string);