N°5958 - 1:n - edit_mode=ADD_ONLY - Location -> Person

Disable blob edition only when editing via ajax
This commit is contained in:
Benjamin Dalsass
2023-04-24 15:18:08 +02:00
parent 3e6e3919fb
commit 4ef93db9a7

View File

@@ -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'] =
<<<JS
@@ -179,9 +181,6 @@ JS;
$oPage->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()) {