FIX: Object should be cloned here (#36289)

Co-authored-by: Noé <noe@scopen.fr>
This commit is contained in:
noec764 2025-11-17 21:18:28 +01:00 committed by GitHub
parent 278983c4e7
commit cd984fa6c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}
}