mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Complete the commit [3291] that changes the structure returned by MetaModel::EnumTransitions. I have carefully reviewed every call to EnumTransitions... and found out only one single missing case in the data model view.
SVN:trunk[3373]
This commit is contained in:
@@ -211,7 +211,24 @@ function DisplayLifecycle($oPage, $sClass)
|
||||
$sTargetStateLabel = MetaModel::GetStateLabel($sClass, $aTransitionDef['target_state']);
|
||||
if (count($aTransitionDef['actions']) > 0)
|
||||
{
|
||||
$sActions = " <em>(".implode(', ', $aTransitionDef['actions']).")</em>";
|
||||
$aActionsDesc = array();
|
||||
foreach ($aTransitionDef['actions'] as $actionHandler)
|
||||
{
|
||||
if (is_string($actionHandler))
|
||||
{
|
||||
$aActionsDesc[] = $actionHandler;
|
||||
}
|
||||
else
|
||||
{
|
||||
$aParamsDesc = array();
|
||||
foreach ($actionHandler['params'] as $aParamData)
|
||||
{
|
||||
$aParamsDesc[] = $aParamData['type'].':'.$aParamData['value'];
|
||||
}
|
||||
$aActionsDesc[] = $actionHandler['verb'].'('.implode(', ', $aParamsDesc).')';
|
||||
}
|
||||
}
|
||||
$sActions = " <em>(".implode(', ', $aActionsDesc).")</em>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user