Add "?" to replace one character in user filter
This commit is contained in:
parent
5b4bf5fa68
commit
6753fd0fca
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Filter extends Action
|
|||
// кроме * есть другие символы
|
||||
if ('' != \trim($rule[1], '*')) {
|
||||
$where[] = "u.{$field} {$like} ?{$fields[$field]} ESCAPE '#'";
|
||||
$vars[] = \str_replace(['#', '%', '_', '*'], ['##', '#%', '#_', '%'], $rule[1]);
|
||||
$vars[] = \str_replace(['#', '%', '_', '*', '?'], ['##', '#%', '#_', '%', '_'], $rule[1]);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue