[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 | <6978bfb3b09d7_3bb62d08601d@gitlab-sidekiq-low-urgency-cpu-bound-v2-56b45bf65-884pr.mail> |
Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
1272b209 by Victor Emanouilov at 2026-01-27T15:37:39+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/1272b209975ab4ce0deedf66636400fa72604534
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1272b209975ab4ce0deedf66636400fa72604534
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