From 87582a021b4626baf5c77a41d50f4372de0a2256 Mon Sep 17 00:00:00 2001
From: Anne-Catherine <57360138+accognet@users.noreply.github.com>
Date: Mon, 15 Jan 2024 15:49:19 +0100
Subject: [PATCH] =?UTF-8?q?N=C2=B06993=20-=20Error=20message=20on=20bulk?=
=?UTF-8?q?=20transition=20on=20object=20containing=20a=20null=20blob=20(#?=
=?UTF-8?q?596)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
application/cmdbabstract.class.inc.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index ba60776c6..f712a249d 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -3218,13 +3218,13 @@ EOF
if ($oAttDef->GetEditClass() == 'Document')
{
$oDocument = $this->Get($sAttCode);
- if (!$oDocument->IsEmpty())
+ if (is_object($oDocument) && !$oDocument->IsEmpty())
{
$sDisplayValue = $this->GetAsHTML($sAttCode);
$sDisplayValue .= "
".Dict::Format('UI:OpenDocumentInNewWindow_',
- $oDocument->GetDisplayLink(get_class($this), $this->GetKey(), $sAttCode)).", \n";
+ $oDocument->GetDisplayLink(get_class($this), $this->GetKey(), $sAttCode)).", \n";
$sDisplayValue .= "
".Dict::Format('UI:DownloadDocument_',
- $oDocument->GetDownloadLink(get_class($this), $this->GetKey(), $sAttCode)).", \n";
+ $oDocument->GetDownloadLink(get_class($this), $this->GetKey(), $sAttCode)).", \n";
}
else
{