forked from Wavyzz/dolibarr
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user