File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
datamodels/2.x/itop-portal-base/portal/src/Form Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,8 @@ public function Build()
359359 foreach ($ this ->aFieldsAtts as $ sAttCode => $ iFieldFlags )
360360 {
361361 // handle plugins fields
362- if (array_key_exists ($ sAttCode , $ this ->aExtraData )
362+ if ($ this ->sMode !== 'apply_stimulus '
363+ && array_key_exists ($ sAttCode , $ this ->aExtraData )
363364 && array_key_exists ('plugin ' , $ this ->aExtraData [$ sAttCode ])){
364365 $ sPluginName = $ this ->aExtraData [$ sAttCode ]['plugin ' ];
365366 switch ($ sPluginName ){
@@ -713,7 +714,8 @@ public function Build()
713714
714715 // fallback Checking if the instance has attachments
715716 // (in case attachment is not explicitly declared in layout)
716- if (class_exists ('Attachment ' ) && class_exists ('AttachmentPlugIn ' )
717+ if ($ this ->sMode !== 'apply_stimulus '
718+ && class_exists ('Attachment ' ) && class_exists ('AttachmentPlugIn ' )
717719 && !$ this ->IsPluginInitialized (AttachmentPlugIn::class)
718720 && AttachmentPlugIn::IsAttachmentAllowedForObject ($ this ->oObject )){
719721 $ this ->AddAttachmentField ($ this ->oForm , 'attachments_plugin ' , $ this ->aExtraData );
You can’t perform that action at this time.
0 commit comments