Can remove filter entries

This commit is contained in:
Laurent Destailleur
2024-02-16 01:50:03 +01:00
parent 7107b5feb3
commit b48455c9d7
3 changed files with 57 additions and 4 deletions

View File

@@ -12573,6 +12573,16 @@ function dolForgeExplodeAnd($sqlfilters)
$arrayofandtags = array();
$nbofchars = dol_strlen($sqlfilters);
$error = '';
$parenthesislevel = 0;
$result = dolCheckFilters($sqlfilters, $error, $parenthesislevel);
if (!$result) {
return array();
}
if ($parenthesislevel >= 1) {
$sqlfilters = preg_replace('/^\(/', '', preg_replace('/\)$/', '', $sqlfilters));
}
$i = 0;
$s = '';
$countparenthesis = 0;