mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°653: Dependant fields on transitions was not using transition flags.
SVN:trunk[4769]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user