From 2e777137727d1bab89c5538c95b48382673a9821 Mon Sep 17 00:00:00 2001 From: bdalsass Date: Wed, 4 Jun 2025 16:34:30 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B08399=20-=20Portal:=20unnecessary=20scree?= =?UTF-8?q?n=20is=20displayed=20during=20a=20transition=20with=20no=20fiel?= =?UTF-8?q?d=20to=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itop-portal-base/portal/src/Form/ObjectFormManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php b/datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php index 245b4115b6..c284c36b2a 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php +++ b/datamodels/2.x/itop-portal-base/portal/src/Form/ObjectFormManager.php @@ -359,7 +359,8 @@ class ObjectFormManager extends FormManager foreach ($this->aFieldsAtts as $sAttCode => $iFieldFlags) { // handle plugins fields - if(array_key_exists($sAttCode, $this->aExtraData) + if($this->sMode !== 'apply_stimulus' + && array_key_exists($sAttCode, $this->aExtraData) && array_key_exists('plugin', $this->aExtraData[$sAttCode])){ $sPluginName = $this->aExtraData[$sAttCode]['plugin']; switch($sPluginName){ @@ -713,7 +714,8 @@ class ObjectFormManager extends FormManager // fallback Checking if the instance has attachments // (in case attachment is not explicitly declared in layout) - if (class_exists('Attachment') && class_exists('AttachmentPlugIn') + if ($this->sMode !== 'apply_stimulus' + && class_exists('Attachment') && class_exists('AttachmentPlugIn') && !$this->IsPluginInitialized(AttachmentPlugIn::class) && AttachmentPlugIn::IsAttachmentAllowedForObject($this->oObject)){ $this->AddAttachmentField($this->oForm, 'attachments_plugin', $this->aExtraData);