From 00234387b02c08b2d7d32b23a22db5567c4a90ee Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sun, 17 Sep 2023 19:51:35 +0200 Subject: [PATCH] fix: Fix listing watched when geokrety have no move --- website/app/GeoKrety/Controller/Pages/UserWatchedGeokrety.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/app/GeoKrety/Controller/Pages/UserWatchedGeokrety.php b/website/app/GeoKrety/Controller/Pages/UserWatchedGeokrety.php index adc30f8620..eef0dcdc1e 100644 --- a/website/app/GeoKrety/Controller/Pages/UserWatchedGeokrety.php +++ b/website/app/GeoKrety/Controller/Pages/UserWatchedGeokrety.php @@ -17,7 +17,7 @@ public function get() { protected function getHas(\GeoKrety\Model\Base $object): void { // Hack to order by rel field, tip from https://github.com/ikkez/f3-cortex/issues/104#issuecomment-657283337 - $object->has('last_position', ['id > 0']); + $object->has('last_position', ['1 = 1']); $object->has('watchers', ['user = ?', $this->user->id]); }