diff --git a/datamodels/1.x/itop-attachments/main.attachments.php b/datamodels/1.x/itop-attachments/main.attachments.php index 7b79969ed..a5dd5647a 100644 --- a/datamodels/1.x/itop-attachments/main.attachments.php +++ b/datamodels/1.x/itop-attachments/main.attachments.php @@ -357,7 +357,7 @@ EOF $sMaxUpload = $this->GetMaxUpload(); $oPage->p(Dict::S('Attachments:AddAttachment').' '.$sMaxUpload); $oPage->p(''); - $oPage->p(''); + $oPage->p(''); $oPage->add(''); if ($this->m_bDeleteEnabled) { @@ -388,6 +388,12 @@ EOF protected static function UpdateAttachments($oObject, $oChange = null) { + if (utils::ReadParam('attachment_plugin', 'not-in-form') == 'not-in-form') + { + // Workaround to an issue in iTop < 2.0 + // Leave silently if there is no trace of the attachment form + return; + } $iTransactionId = utils::ReadParam('transaction_id', null); if (!is_null($iTransactionId)) {