Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0

This commit is contained in:
Laurent Destailleur (aka Eldy)
2025-02-04 23:25:24 +01:00
8 changed files with 20 additions and 16 deletions

View File

@@ -10472,7 +10472,7 @@ abstract class CommonObject
}
// Create lines
if (!empty($this->table_element_line) && !empty($this->fk_element)) {
if (!empty($this->table_element_line) && !empty($this->fk_element) && !empty($this->lines)) {
foreach ($this->lines as $line) {
$keyforparent = $this->fk_element;
$line->$keyforparent = $this->id;