aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 60778be51..76a2a2aeb 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -246,13 +246,12 @@ sub load_and_group_problems : Private {
state => [ 'confirmed', 'fixed' ]
};
my @cols = ( 'id', 'council', 'state', 'areas' );
- push @cols, 'title', 'detail';
if ($c->stash->{ward}) {
$where->{areas} = { 'like', '%' . $c->stash->{ward}->{id} . '%' }; # FIXME Check this is secure
- #push @cols, 'title', 'detail';
+ push @cols, 'title', 'detail';
} elsif ($c->stash->{council}) {
$where->{areas} = { 'like', '%' . $c->stash->{council}->{id} . '%' };
- #push @cols, 'title', 'detail';
+ push @cols, 'title', 'detail';
}
my $problems = $c->cobrand->problems->search(
$where,