diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 17a03bf7be9..85112bca3f9 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -1201,6 +1201,9 @@ sub process_report : Private { my $areas = $c->stash->{all_areas_mapit}; $report->areas( ',' . join( ',', sort keys %$areas ) . ',' ); + my $cobrand_data = $c->stash->{cobrand_data} || ''; + $report->cobrand_data($cobrand_data); + if ( $report->category ) { my @contacts = grep { $_->category eq $report->category } @{$c->stash->{contacts}}; unless ( @contacts ) { @@ -1234,7 +1237,7 @@ sub process_report : Private { $report->bodies_str($body_string); # Record any body IDs which might have meant to match, but had no contact - if ($body_string ne '-1' && @{ $c->stash->{missing_details_bodies} }) { + if ($cobrand_data ne 'waste' && $body_string ne '-1' && @{ $c->stash->{missing_details_bodies} }) { my $missing = join( ',', map { $_->id } @{ $c->stash->{missing_details_bodies} } ); $report->bodies_missing($missing); } @@ -1279,7 +1282,6 @@ sub process_report : Private { # save the cobrand and language related information $report->cobrand( $c->cobrand->moniker ); - $report->cobrand_data( $c->stash->{cobrand_data} || '' ); $report->lang( $c->stash->{lang_code} ); return 1;