fix query operators

This commit is contained in:
2023-09-14 08:24:34 +10:00
parent 9b5166c570
commit f507d198a7

View File

@@ -187,9 +187,9 @@ class Conductor
case '>': case '>':
case '<': case '<':
case '|': case '|':
$operator = '=';
$separatorPos = strpos($value, '|'); $separatorPos = strpos($value, '|');
if ($separatorPos !== false) { if ($separatorPos !== false) {
$operator = '==';
$valueList = explode('|', $value); $valueList = explode('|', $value);
foreach($valueList as $valueItem) { foreach($valueList as $valueItem) {
$this->appendFilter($field, $operator, $valueItem, 'OR'); $this->appendFilter($field, $operator, $valueItem, 'OR');