diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 2258e5321..9f7b5cbea 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -210,9 +210,13 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay { $aFieldsMap = $this->GetBareProperties($oPage, $bEditMode, $sPrefix, $aExtraParams); - foreach (MetaModel::EnumPlugins('iApplicationUIExtension') as $oExtensionInstance) + + if (!isset($aExtraParams['disable_plugins']) || !$aExtraParams['disable_plugins']) { - $oExtensionInstance->OnDisplayProperties($this, $oPage, $bEditMode); + foreach (MetaModel::EnumPlugins('iApplicationUIExtension') as $oExtensionInstance) + { + $oExtensionInstance->OnDisplayProperties($this, $oPage, $bEditMode); + } } // Special case to display the case log, if any... diff --git a/datamodels/2.x/itop-attachments/main.attachments.php b/datamodels/2.x/itop-attachments/main.attachments.php index 7b79969ed..a5dd5647a 100755 --- a/datamodels/2.x/itop-attachments/main.attachments.php +++ b/datamodels/2.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)) { diff --git a/pages/UI.php b/pages/UI.php index 232b972bc..430efad77 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -943,7 +943,7 @@ try $oP->add("\n"); $oP->add("