N°6005 - CSV import : import an object and a linkset fails

This commit is contained in:
Benjamin Dalsass
2023-06-13 08:14:34 +02:00
parent 465388b5e3
commit 0a45039c5c

View File

@@ -1777,7 +1777,7 @@ class AttributeLinkedSet extends AttributeDefinition
try {
/** @var ormLinkSet $sValue */
if ($sValue->Count() === 0) {
if (is_null($sValue) || $sValue->Count() === 0) {
return '';
}