From 69c48df049f772f2d33534cd5ce6d511d0164f2a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 14 Mar 2026 23:16:47 +0100 Subject: [PATCH] Fix keyset pagination when sorting by category name (#8597) There was a typo with a `=` too much --- app/Models/EntryDAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 27edf85f2..996249a26 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1421,7 +1421,7 @@ SQL; // Keyset pagination (Compatibility syntax due to poor performance of tuple syntax in MySQL https://bugs.mysql.com/bug.php?id=104128) if ($sort === 'c.name') { // Includes the feed-name sort and a user secondary sort - $search .= "AND ((c.name {$sign} ?) OR (c.name = ? AND f.name {$sign} ?) OR (c.name = ? AND f.name = ? AND {$orderBy2} {$sign2}= ?) " . + $search .= "AND ((c.name {$sign} ?) OR (c.name = ? AND f.name {$sign} ?) OR (c.name = ? AND f.name = ? AND {$orderBy2} {$sign2} ?) " . "OR (c.name = ? AND f.name = ? AND {$orderBy2} = ? AND {$alias}id {$sign}= ?)) "; $values[] = $continuation_values[0]; // c.name (primary sort) $values[] = $continuation_values[0]; // c.name (primary sort)