Portal : Added a new mode "apply_stimulus" for forms. This allows to add flags to attributes that are prompt during transitions.

SVN:trunk[4378]
This commit is contained in:
Guillaume Lajarige
2016-09-05 14:29:05 +00:00
parent 8feef7fd8a
commit b2fa9c468f
3 changed files with 119 additions and 3 deletions

View File

@@ -506,9 +506,16 @@ class ObjectController extends AbstractController
->SetMode($sMode)
->SetActionRulesToken($sActionRulesToken)
->SetRenderer($oFormRenderer)
->SetFormProperties($aFormProperties)
->Build();
->SetFormProperties($aFormProperties);
if ($sMode === 'apply_stimulus')
{
$aEditFormProperties = ApplicationHelper::GetLoadedFormFromClass($oApp, $sObjectClass, ObjectFormManager::ENUM_MODE_APPLY_STIMULUS);
$oFormManager->MergeFormProperties($aEditFormProperties);
}
$oFormManager->Build();
// Check the number of editable fields
$aFormData['editable_fields_count'] = $oFormManager->GetForm()->GetEditableFieldCount();
}