From 60ad343b22ab3cff886e8a8c0f57d40bbff8dcfc Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 13 Jan 2019 16:04:01 +0100 Subject: fixes #178: Show not only next but also last shift in free angels view --- includes/model/ShiftEntry_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/model/ShiftEntry_model.php') diff --git a/includes/model/ShiftEntry_model.php b/includes/model/ShiftEntry_model.php index 248e7d1e..54837bac 100644 --- a/includes/model/ShiftEntry_model.php +++ b/includes/model/ShiftEntry_model.php @@ -206,7 +206,7 @@ function ShiftEntries_finished_by_user($userId) WHERE `ShiftEntry`.`UID` = ? AND `Shifts`.`end` < ? AND `ShiftEntry`.`freeloaded` = 0 - ORDER BY `Shifts`.`end` + ORDER BY `Shifts`.`end` desc ', [ $userId, -- cgit v1.2.3-54-g00ecf