Bug fix: display an empty string for the friendlyname of a NULL external key

SVN:trunk[2418]
This commit is contained in:
Romain Quetiez
2012-11-09 16:49:17 +00:00
parent 46e42f0ea2
commit 59b7c0c025

View File

@@ -1149,6 +1149,14 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
else
{
$rawValue = $oObj->Get($sAttCodeEx);
if ($oAttDef instanceof AttributeFriendlyName)
{
$sKeyAttCode = $oAttDef->GetKeyAttCode();
if ($oObj->Get($sKeyAttCode) == 0)
{
$rawValue = '';
}
}
if ($bLocalize)
{
$outputValue = htmlentities($oFinalAttDef->GetValueLabel($rawValue), ENT_QUOTES, 'UTF-8');