[TikiWiki-commits] [Git][tikiwiki/tiki][master] 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 <693d5233c171f_2a17f58412568@gitlab-sidekiq-low-urgency-cpu-bound-v2-64d4768b4d-8flv5.mail>

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


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

- - - - -
472e5730 by Victor Emanouilov at 2025-12-13T13:46:54+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
=====================================
@@ -215,7 +215,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
=====================================
@@ -237,6 +237,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/18a75b6f31f096444674429d06bdb5ec78bdfd9c...472e57306e4e4681b768a73a9666578c182a945e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/compare/18a75b6f31f096444674429d06bdb5ec78bdfd9c...472e57306e4e4681b768a73a9666578c182a945e
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.