2
0
forked from Wavyzz/dolibarr

FIX better compatibility with some old extrafield syntax filter

This commit is contained in:
Laurent Destailleur
2024-09-16 15:50:47 +02:00
parent 697bf01970
commit 65edbd5f9f
4 changed files with 46 additions and 13 deletions

View File

@@ -13356,6 +13356,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$errorstr = '', $noand =
if ($noerror) {
return '1 = 2';
} else {
dol_syslog("forgeSQLFromUniversalSearchCriteria Filter error - ".$errorstr, LOG_WARNING);
return 'Filter error - '.$tmperrorstr; // Bad syntax of the search string, we return an error message or force a SQL not found
}
}