FIX delete criteria

This commit is contained in:
Quentin VIAL-GOUTEYRON 2022-02-01 12:24:04 +01:00
parent e086d5a5f2
commit e17d3b029e

View File

@ -9158,10 +9158,6 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
}
else $newres .= $field." LIKE '";
$tmpcrit = trim($tmpcrit);
$tmpcrit2 = $tmpcrit;
$tmpbefore = '%';
$tmpafter = '%';
if (preg_match('/^[\^\$]/', $tmpcrit)) {
$tmpbefore = '';
$tmpcrit2 = preg_replace('/^[\^\$]/', '', $tmpcrit2);