diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index fadee9684..92dbced15 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -280,7 +280,8 @@ sub group_problems : Private { foreach my $row (@{$c->stash->{problems}}) { if (!$row->council) { # Problem was not sent to any council, add to possible councils - while ($row->areas =~ /,($re_councils)(?=,)/g) { + my $areas = $row->areas; + while ($areas =~ /,($re_councils)(?=,)/g) { add_row($row, $1, \%fixed, \%open); } } else { |