[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Manticore scrolling - make sure to always order by id at the end, so...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6978bfb6be287_3b183c9c189df@gitlab-sidekiq-low-urgency-cpu-bound-v2-56b45bf65-p6nz6.mail>

Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
1249b674 by Victor Emanouilov at 2026-01-27T15:37:49+02:00
[FIX] Manticore scrolling - make sure to always order by id at the end, so scrolling is working correctly

- - - - -


1 changed file:

- lib/core/Search/Manticore/PdoClient.php


Changes:

=====================================
lib/core/Search/Manticore/PdoClient.php
=====================================
@@ -449,7 +449,9 @@ class PdoClient
         }
         $sql .= " FROM $table WHERE $condition";
         if ($order) {
-            $sql .= " ORDER BY $order";
+            $sql .= " ORDER BY $order, id asc";
+        } else {
+            $sql .= " ORDER BY weight() desc, id asc";
         }
         $sql .= " LIMIT $resultStart, $resultCount option not_terms_only_allowed=1,cutoff=0,expand_keywords=1";
         if ($resultStart + $resultCount > 1000) {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1249b674139a47113d1a2e3f7e8d354ac2605b5b

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1249b674139a47113d1a2e3f7e8d354ac2605b5b
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.