FIX: Object should be cloned here (#36289)
Co-authored-by: Noé <noe@scopen.fr>
This commit is contained in:
parent
278983c4e7
commit
cd984fa6c5
1 changed files with 1 additions and 1 deletions
|
|
@ -958,7 +958,7 @@ class Categorie extends CommonObject
|
|||
$obj->id = 0;
|
||||
$obj->fetch($rec['fk_object']);
|
||||
if ($obj->id > 0) { // Failing fetch may happen for example when a category supplier was set and third party was moved as customer only. The object supplier can't be loaded.
|
||||
$objs[] = $obj;
|
||||
$objs[] = clone $obj;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue