From 1c3117dd2c806a88d43e6638d150490f8cd63e94 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Wed, 19 Apr 2023 08:17:39 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Controller/Base/Layout/ObjectController.php b/sources/Controller/Base/Layout/ObjectController.php index 8a2ca12d7..41e390d41 100644 --- a/sources/Controller/Base/Layout/ObjectController.php +++ b/sources/Controller/Base/Layout/ObjectController.php @@ -278,6 +278,9 @@ JS; }; JS; + // Remove blob edition from creation form @see N°5863 to allow blob edition in modal context + LegacyFormHelper::DisableAttributeBlobInputs($sClass, $aFormExtraParams); + } else { $oPage = new iTopWebPage('', $bPrintable); $oPage->DisableBreadCrumb(); @@ -288,9 +291,6 @@ JS; $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().$sJsFileRelPath); } - // Remove blob edition from creation form @see N°5863 to allow blob edition in modal context - LegacyFormHelper::DisableAttributeBlobInputs($sClass, $aFormExtraParams); - // Note: Code duplicated to the case 'apply_modify' in UI.php when a data integrity issue has been found $oObj->DisplayModifyForm($oPage, $aFormExtraParams); // wizard_container: Display the title above the form