mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
Merge v20
This commit is contained in:
@@ -1369,7 +1369,7 @@ function get_next_value($db, $mask, $table, $field, $where = '', $objsoc = '', $
|
||||
if ($bentityon) { // only if entity enable
|
||||
$maskrefclient_sql .= " AND entity IN (".getEntity($sharetable).")";
|
||||
} elseif (!empty($forceentity)) {
|
||||
$sql .= " AND entity IN (".$db->sanitize($forceentity).")";
|
||||
$maskrefclient_sql .= " AND entity IN (".$db->sanitize($forceentity).")";
|
||||
}
|
||||
if ($where) {
|
||||
$maskrefclient_sql .= $where; //use the same optional where as general mask
|
||||
|
||||
Reference in New Issue
Block a user