diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 17:51:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-13 17:51:11 +0100 |
commit | ad77f4c3d3bae6e007b6bff7c2205def4855369b (patch) | |
tree | f6b734e9835a3467b58651fddbe28ca6511a3bb3 | |
parent | bee001db37d46a8ccd39cd086d24d01c6f480e72 (diff) |
Don't ask for title/detail if we don't need them.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 5 |
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, |