fix: [behavior:metaField] Wildcard searches now work if the wildcare is placed in front
parent
acd80e2f18
commit
549d9f3e1b
|
@ -193,7 +193,7 @@ class MetaFieldsBehavior extends Behavior
|
||||||
if (substr($value, 0, 1) == '!') {
|
if (substr($value, 0, 1) == '!') {
|
||||||
$value = substr($value, 1);
|
$value = substr($value, 1);
|
||||||
$exp->notEq($field, $value);
|
$exp->notEq($field, $value);
|
||||||
} else if (strpos($value, '%') != false) {
|
} else if (strpos($value, '%') !== false) {
|
||||||
$exp->like($field, $value);
|
$exp->like($field, $value);
|
||||||
} else {
|
} else {
|
||||||
$exp->eq($field, $value);
|
$exp->eq($field, $value);
|
||||||
|
|
Loading…
Reference in New Issue