From 4ef93db9a74cf97c68cb848384d2dddaa5ab4b94 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Mon, 24 Apr 2023 15:18:08 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05958=20-=201:n=20-=20edit=5Fmode=3DADD?= =?UTF-8?q?=5FONLY=20-=20Location=20->=20Person=20Disable=20blob=20edition?= =?UTF-8?q?=20only=20when=20editing=20via=20ajax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Controller/Base/Layout/ObjectController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/Controller/Base/Layout/ObjectController.php b/sources/Controller/Base/Layout/ObjectController.php index 4a0ccf1b4..4cf4886fb 100644 --- a/sources/Controller/Base/Layout/ObjectController.php +++ b/sources/Controller/Base/Layout/ObjectController.php @@ -167,6 +167,8 @@ class ObjectController extends AbstractController } JS; + // Remove blob edition from creation form @see N°5863 to allow blob edition in modal context + FormHelper::DisableAttributeBlobInputs($sRealClass, $aFormExtraParams); $aFormExtraParams['js_handlers']['cancel_button_on_click'] = <<SetContentLayout(PageContentFactory::MakeForObjectDetails($oObjToClone, cmdbAbstractObject::ENUM_DISPLAY_MODE_CREATE)); } - // Remove blob edition from creation form @see N°5863 to allow blob edition in modal context - FormHelper::DisableAttributeBlobInputs($sRealClass, $aFormExtraParams); - cmdbAbstractObject::DisplayCreationForm($oPage, $sRealClass, $oObjToClone, array(), $aFormExtraParams); } else { if ($this->IsHandlingXmlHttpRequest()) {