[TikiWiki-commits] [Git][tikiwiki/tiki][27.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 <6978bfbfb1e16_3b183c9c53050@gitlab-sidekiq-low-urgency-cpu-bound-v2-56b45bf65-f92kn.mail>

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


Commits:
1c40bb1b by Victor Emanouilov at 2026-01-27T15:37:57+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/1c40bb1b1d84929e8497ef632b68b93a5b8e7f58

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1c40bb1b1d84929e8497ef632b68b93a5b8e7f58
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.