mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
#777 mandatory fields that are external keys are now displayed with a star before the arrow: ExtkeyName*->ReconciliationField. In import the old syntax is supported as well.
SVN:trunk[2908]
This commit is contained in:
@@ -1041,12 +1041,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
|
||||
}
|
||||
foreach($aList[$sAlias] as $sAttCodeEx => $oAttDef)
|
||||
{
|
||||
$sStar = '';
|
||||
if (!$oAttDef->IsNullAllowed() && isset($aParams['showMandatoryFields']))
|
||||
{
|
||||
$sStar = '*';
|
||||
}
|
||||
$aHeader[] = ($bLocalize ? MetaModel::GetLabel($sClassName, $sAttCodeEx) : $sAttCodeEx).$sStar;
|
||||
$aHeader[] = $bLocalize ? MetaModel::GetLabel($sClassName, $sAttCodeEx, isset($aParams['showMandatoryFields'])) : $sAttCodeEx;
|
||||
}
|
||||
}
|
||||
$sHtml = implode($sSeparator, $aHeader)."\n";
|
||||
|
||||
Reference in New Issue
Block a user