You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which yields an empty array from administrator/components/com_finder/src/Indexer/Helper.php
It is in turn because row 107:
$terms = array_filter($terms);
removes 0 because array_filter without callback does that. The reason for the comma issue is also array_filter. Should it be specified which false values should be removed in helper with callback for array_filter?
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
Search for "between 0 and 1" with com_finder search function
Search for "test ,something and something else"
Expected result
Result page
Actual result
Error: Attempt to modify property "matches" on null
System information (as much as possible)
Joomla 5.2.2
Additional comments
Issue is when 0 is combined with operator or when comma is added to beginning of word with operator in search field
It happens when JROOT/administrator/components/com_finder/src/Indexer/Query.php creates $token with
$token = Helper::tokenize($terms[$i], $lang, true);
which yields an empty array from administrator/components/com_finder/src/Indexer/Helper.php
It is in turn because row 107:
$terms = array_filter($terms);
removes 0 because array_filter without callback does that. The reason for the comma issue is also array_filter. Should it be specified which false values should be removed in helper with callback for array_filter?
The text was updated successfully, but these errors were encountered: