From 3606a5c425efc9b0929213739ed9427172d9973c Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 29 Jan 2024 18:32:15 -0600 Subject: [PATCH] Restore missing 'order by' clause to artwork list --- lib/Library.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Library.php b/lib/Library.php index 9dc6bf52..99c099f3 100644 --- a/lib/Library.php +++ b/lib/Library.php @@ -236,9 +236,11 @@ class Library{ $params[] = $offset; $artworks = Db::Query(' - SELECT * + SELECT art.* from Artworks art + inner join Artists a USING (ArtistId) where ' . $statusCondition . ' + order by ' . $orderBy . ' limit ? offset ?', $params, 'Artwork'); }