[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] 2 commits: [FIX] Itemslist: string value coming from search index for some array itemslist data values

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <693d5253d5ca0_2a17f52012717@gitlab-sidekiq-low-urgency-cpu-bound-v2-64d4768b4d-8flv5.mail>

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


Commits:
700ea28f by Victor Emanouilov at 2025-12-13T13:47:25+02:00
[FIX] Itemslist: string value coming from search index for some array itemslist data values

- - - - -
83436925 by Victor Emanouilov at 2025-12-13T13:47:26+02:00
[FIX] Manticore: indexed column range search

- - - - -


2 changed files:

- lib/core/Search/Manticore/QueryBuilder.php
- lib/core/Tracker/Field/ItemsList.php


Changes:

=====================================
lib/core/Search/Manticore/QueryBuilder.php
=====================================
@@ -202,7 +202,11 @@ class QueryBuilder
             } else {
                 $from = $this->getQuoted($node->getToken('from'));
                 $to = $this->getQuoted($node->getToken('to'));
-                return "$field BETWEEN $from AND $to";
+                if ($this->isFullText($node)) {
+                    return "($field >= $from AND $field <= $to)";
+                } else {
+                    return "$field BETWEEN $from AND $to";
+                }
             }
         } elseif ($node instanceof Distance) {
             $field = $this->getField($node);


=====================================
lib/core/Tracker/Field/ItemsList.php
=====================================
@@ -240,6 +240,9 @@ $("input[name=ins_' . $this->getOption('fieldIdHere') . '], select[name=ins_' .
     {
         if (isset($context['search_render']) && $context['search_render'] == 'y') {
             $itemIds = $this->getData($this->getConfiguration('fieldId'));
+            if (empty($itemIds) && ! is_array($itemIds)) {
+                $itemIds = [];
+            }
         } else {
             $itemIds = $this->getItemIds();
         }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/compare/b96b2165565b71b4c0186c3758c93cc21bceb134...83436925be52005ef449e8f1710ec34a63da6d2f

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/compare/b96b2165565b71b4c0186c3758c93cc21bceb134...83436925be52005ef449e8f1710ec34a63da6d2f
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.