mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 19:41:26 +01:00
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -10272,7 +10272,7 @@ function dol_osencode($str)
|
||||
* Store also Code-Id into a cache to speed up next request on same table and key.
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $key Code or Id to get Id or Code
|
||||
* @param string|int $key Code (string) or Id (int) to get Id or Code
|
||||
* @param string $tablename Table name without prefix
|
||||
* @param string $fieldkey Field to search the key into
|
||||
* @param string $fieldid Field to get
|
||||
@@ -13522,6 +13522,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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user