mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
9622 - Error in the user story life cycle
This commit is contained in:
@@ -3240,7 +3240,13 @@ EOF
|
||||
$aAllowedValues = MetaModel::GetAllowedValues_att($sClass, $sAttCode, $aArgs);
|
||||
if (is_array($aAllowedValues) && count($aAllowedValues) == 1) {
|
||||
$aValues = array_keys($aAllowedValues);
|
||||
$this->Set($sAttCode, $aValues[0]);
|
||||
if ($oAttDef->IsLinkSet()) {
|
||||
$oObjectSet = $this->Get($sAttCode);
|
||||
$oObjectSet->AddItem(MetaModel::GetObject($oAttDef->GetLinkedClass(), $aValues[0]));
|
||||
$this->Set($sAttCode, $oObjectSet);
|
||||
} else {
|
||||
$this->Set($sAttCode, $aValues[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user