Fixed regression introduced in [3224] thus in iTop 2.0.3, in the data model view: could not see the OQL constraints on external keys

SVN:trunk[3385]
This commit is contained in:
Romain Quetiez
2014-10-28 16:07:42 +00:00
parent 0135573956
commit 5ecf6b9e9d

View File

@@ -450,7 +450,14 @@ function DisplayClassDetails($oPage, $sClass, $sContext)
}
$sAllowedValues = implode(', ', $aDescription);
}
else $sAllowedValues = '';
elseif (is_object($oAllowedValuesDef = $oAttDef->GetValuesDef()))
{
$sAllowedValues = $oAllowedValuesDef->GetValuesDescription();
}
else
{
$sAllowedValues = '';
}
$aDetails[] = array('code' => $oAttDef->GetCode(), 'type' => $sType, 'origin' => $sOrigin, 'label' => $oAttDef->GetLabel(), 'description' => $sValue, 'values' => $sAllowedValues, 'moreinfo' => $sMoreInfo);
}