From 52cd4f7c5e8525414319a1ea095a70cc7f28bf2d Mon Sep 17 00:00:00 2001 From: odain Date: Tue, 9 Mar 2021 11:44:25 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03788=20-=20timeout/excessive=20duration?= =?UTF-8?q?=20during=20MTP=20-=20fix=20PostDbCreation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-attachments/module.itop-attachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-attachments/module.itop-attachments.php b/datamodels/2.x/itop-attachments/module.itop-attachments.php index cebd8da03..f8ae08ba1 100644 --- a/datamodels/2.x/itop-attachments/module.itop-attachments.php +++ b/datamodels/2.x/itop-attachments/module.itop-attachments.php @@ -179,7 +179,7 @@ SQL; $iUpdated = 0; while ($oAttachment = $oSet->Fetch()) { - if ($oAttachment->Get('item_id') == 0) { + if (empty($oAttachment->Get('item_class'))) { //do not treat orphan attachment continue; }