[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] manticore range search expression

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <696a2e22c5de5_2c1818c03815b@gitlab-sidekiq-low-urgency-cpu-bound-v2-859b9cfb8-7hjh8.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
bca7bcde by Victor Emanouilov at 2026-01-16T14:24:56+02:00
[FIX] manticore range search expression

- - - - -


1 changed file:

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


Changes:

=====================================
lib/core/Search/Manticore/QueryBuilder.php
=====================================
@@ -236,11 +236,15 @@ class QueryBuilder
             $raw = $this->getRaw($node->getToken('from'));
             if ($raw === "" || is_null($raw)) {
                 $to = $this->getQuoted($node->getToken('to'));
-                return "$field <= $to";
+                $key = 'tf_' . uniqid();
+                $this->select[$key] = "$field <= $to";
+                return "$key = 1";
             } else {
                 $from = $this->getQuoted($node->getToken('from'));
                 $to = $this->getQuoted($node->getToken('to'));
-                return "($field >= $from AND $field <= $to)";
+                $key = 'tf_' . uniqid();
+                $this->select[$key] = "($field >= $from AND $field <= $to)";
+                return "$key = 1";
             }
         } elseif ($node instanceof Distance) {
             $field = $this->getField($node);



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

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