mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Bug fix: display an empty string for the friendlyname of a NULL external key
SVN:trunk[2418]
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user