mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-22 09:21:30 +01:00
Can remove filter entries
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user