N°8598 - Request template class not taken into account on portal scopes

This commit is contained in:
Anne-Cath
2025-08-26 08:52:33 +02:00
parent f03b008ebf
commit 3d67d17b34
2 changed files with 54 additions and 1 deletions

View File

@@ -377,7 +377,10 @@ class ObjectFormManager extends FormManager
/** @var Field $oField */
$oField = null;
if (is_callable([$oAttDef, 'MakeFormField']))
if (is_callable([$oAttDef, 'MakeFormFieldForPortal']))
{
$oField = $oAttDef->MakeFormFieldForPortal($this->oObject, null, $this->oFormHandlerHelper);
} elseif (is_callable([$oAttDef, 'MakeFormField']))
{
$oField = $oAttDef->MakeFormField($this->oObject);
}