forked from Wavyzz/dolibarr
Better log
This commit is contained in:
@@ -6694,7 +6694,7 @@ function dol_getIdFromCode($db, $key, $tablename, $fieldkey = 'code', $fieldid =
|
|||||||
return $cache_codes[$tablename][$key][$fieldid]; // Found in cache
|
return $cache_codes[$tablename][$key][$fieldid]; // Found in cache
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_syslog('dol_getIdFromCode (value not found into cache)', LOG_DEBUG);
|
dol_syslog('dol_getIdFromCode (value for field '.$fieldid.' from key '.$key.' not found into cache)', LOG_DEBUG);
|
||||||
|
|
||||||
$sql = "SELECT ".$fieldid." as valuetoget";
|
$sql = "SELECT ".$fieldid." as valuetoget";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX.$tablename;
|
$sql.= " FROM ".MAIN_DB_PREFIX.$tablename;
|
||||||
|
|||||||
Reference in New Issue
Block a user