diff options
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 996e990a8..5b2079831 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -158,9 +158,7 @@ sub _recent { # Need to refetch to check if hidden since cached $probs = [ $rs->search({ id => [ map { $_->id } @$probs ], - photo => { '!=', undef }, - non_public => 'f', - state => [ FixMyStreet::DB::Result::Problem->visible_states() ], + %$query, })->all ]; } else { $probs = [ $rs->search( $query, $attrs )->all ]; |