N°653: Dependant fields on transitions was not using transition flags.

SVN:trunk[4769]
This commit is contained in:
Guillaume Lajarige
2017-06-27 10:14:58 +00:00
parent 4ca998ce91
commit b15621639b
4 changed files with 34 additions and 9 deletions

View File

@@ -569,12 +569,17 @@ try
$oObj->Set($sAttCode, $defaultValue);
}
$sFormPrefix = $oWizardHelper->GetFormPrefix();
$aExpectedAttributes = $oObj->GetTransitionAttributes($oWizardHelper->GetStimulus(), $oWizardHelper->GetInitialState());
foreach($oWizardHelper->GetFieldsForAllowedValues() as $sAttCode)
{
$sId = $oWizardHelper->GetIdForField($sAttCode);
if ($sId != '')
{
if ($oObj->IsNew())
if(array_key_exists($sAttCode, $aExpectedAttributes))
{
$iFlags = $aExpectedAttributes[$sAttCode];
}
elseif ($oObj->IsNew())
{
$iFlags = $oObj->GetInitialStateAttributeFlags($sAttCode);
}