aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-12 23:07:19 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-12 23:07:19 +0100
commitdee9dc7f7456a304cd351de2d10fe2979455f691 (patch)
tree3160e72cd146b8dad61443f4cdc0db42ee890965 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent436274a1b69c5d25488492ecd70e4b4bee204cc1 (diff)
If in location where no details, don't store council ID. Fix small schema issue.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 375b36a51..cb6ac670e 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -628,8 +628,8 @@ sub process_report : Private {
if ( $c->cobrand->moniker eq 'emptyhomes' ) {
- # all councils have all categories for emptyhomes
- $report->council( join( ',', keys %$councils) );
+ $councils = join( ',', @{ $c->stash->{area_ids_to_list} } ) || -1;
+ $report->council( $councils );
} elsif ( $first_council->{type} eq 'LBO') {