Merge pull request #24181 from noec764/patch-2

Correct dolForgeCriteriaCallback
This commit is contained in:
Laurent Destailleur 2023-03-10 18:08:48 +01:00 committed by GitHub
commit 0c7d7b56cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10757,7 +10757,7 @@ function dolForgeCriteriaCallback($matches)
$operand = preg_replace('/[^a-z0-9\._]/i', '', trim($tmp[0]));
$operator = strtoupper(preg_replace('/[^a-z<>=]/i', '', trim($tmp[1])));
$operator = strtoupper(preg_replace('/[^a-z<>!=]/i', '', trim($tmp[1])));
if ($operator == 'NOTLIKE') {
$operator = 'NOT LIKE';
}