mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
FIX Log
This commit is contained in:
@@ -1314,8 +1314,8 @@ function get_next_value($db, $mask, $table, $field, $where = '', $objsoc = '', $
|
||||
if (empty($counter)) {
|
||||
$counter = $maskoffset;
|
||||
} elseif (preg_match('/[^0-9]/i', $counter)) {
|
||||
$counter = 0;
|
||||
dol_syslog("Error, the last counter found is '".$counter."' so is not a numeric value. We will restart to 1.", LOG_ERR);
|
||||
$counter = 0;
|
||||
} elseif ($counter < $maskoffset && empty($conf->global->MAIN_NUMBERING_OFFSET_ONLY_FOR_FIRST)) {
|
||||
$counter = $maskoffset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user