aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-04-29 13:56:06 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-04-29 13:56:06 +0100
commit7ae73db27ae722e894d0b48e68ae75b64010111e (patch)
treea1c9778b15b02a1c1babaa46deeb950eada7e2fa
parentfaad588069c2db225a46c2ad6de749b65232f6f7 (diff)
parent9a3fbada739138d96f6f08f4327c7d8db6d46b7e (diff)
Merge branch 'cached_recent_order' of git://github.com/Sambruk/fixmystreet
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Problem.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
index 3e48170d8..359d5224a 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -159,7 +159,7 @@ sub _recent {
$probs = [ $rs->search({
id => [ map { $_->id } @$probs ],
%$query,
- })->all ];
+ }, $attrs)->all ];
} else {
$probs = [ $rs->search( $query, $attrs )->all ];
Memcached::set($key, $probs, _cache_timeout());