2
0
forked from Wavyzz/dolibarr

Fix warnings

This commit is contained in:
Laurent Destailleur
2023-12-15 13:49:09 +01:00
parent 05db4b9f8e
commit 44f24746ed
2 changed files with 3 additions and 3 deletions

View File

@@ -1274,7 +1274,7 @@ function get_next_value($db, $mask, $table, $field, $where = '', $objsoc = '', $
// To ensure that all variables within the MAX() brackets are integers
// This avoid bad detection of max when data are noised with non numeric values at the position of the numero
if (getDolGlobalInt('MAIN_NUMBERING_FILTER_ON_INT_ONLY')) {
$sql .= " AND ". $db->regexpsql($sqlstring, '^[0-9]+$', true);
$sql .= " AND ". $db->regexpsql($sqlstring, '^[0-9]+$', 1);
}
if ($bentityon) { // only if entity enable