[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] manticore range search expression

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

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


Commits:
e820ad10 by Victor Emanouilov at 2026-01-16T14:25:05+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/e820ad10ec89adbbe21f0d23ded0104ac51ed4e0

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