mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-31 14:12:29 +01:00
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -11685,7 +11685,10 @@ function dolForgeCriteriaCallback($matches)
|
||||
return '';
|
||||
}
|
||||
|
||||
$operator = strtoupper(preg_replace('/[^a-z<>=!]/i', '', trim($tmp[1])));
|
||||
$operand = preg_replace('/[^a-z0-9\._]/i', '', trim($tmp[0]));
|
||||
|
||||
$operator = strtoupper(preg_replace('/[^a-z<>!=]/i', '', trim($tmp[1])));
|
||||
|
||||
if ($operator == 'NOTLIKE') {
|
||||
$operator = 'NOT LIKE';
|
||||
}
|
||||
@@ -11723,7 +11726,7 @@ function dolForgeCriteriaCallback($matches)
|
||||
}
|
||||
}
|
||||
|
||||
return $db->escape($tmp[0]).' '.strtoupper($operator).' '.$tmpescaped;
|
||||
return $db->escape($operand).' '.strtoupper($operator).' '.$tmpescaped;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user