diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-31 17:56:33 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-31 17:56:33 +0100 |
commit | 02475665ba7bf56133d397ed2e6c0e526d7731f5 (patch) | |
tree | 986c16b4b97011a80eb42256afc7a341147afce6 | |
parent | 8989c1cce705be9d071e62e47c08f2838f1b16e8 (diff) |
do not include non public reports in recent lists for display
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index bac367b87..049cf7ce4 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -85,7 +85,8 @@ sub _recent { $key .= ":$site_key:$num"; my $query = { - state => [ FixMyStreet::DB::Result::Problem->visible_states() ], + non_public => 0, + state => [ FixMyStreet::DB::Result::Problem->visible_states() ], }; $query->{photo} = { '!=', undef } if $photos; |