From 0a45039c5c2db587e0f2ab84764368caec2f3d34 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Tue, 13 Jun 2023 08:14:34 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06005=20-=20CSV=20import=20:=20import=20a?= =?UTF-8?q?n=20object=20and=20a=20linkset=20fails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index ccfec0d3d..9dcbdd381 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1777,7 +1777,7 @@ class AttributeLinkedSet extends AttributeDefinition try { /** @var ormLinkSet $sValue */ - if ($sValue->Count() === 0) { + if (is_null($sValue) || $sValue->Count() === 0) { return ''; }