mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
- fixed bug #52 (display of lnkInfraError objects) by adding a protection in GetDisplayName against objects that actually do not have any name.
SVN:trunk[203]
This commit is contained in:
@@ -189,7 +189,12 @@ abstract class cmdbAbstractObject extends CMDBObject
|
||||
|
||||
function GetDisplayName()
|
||||
{
|
||||
return $this->GetAsHTML(MetaModel::GetNameAttributeCode(get_class($this)));
|
||||
$sDisplayName = '';
|
||||
if (MetaModel::GetNameAttributeCode(get_class($this)) != '')
|
||||
{
|
||||
$sDisplayName = $this->GetAsHTML(MetaModel::GetNameAttributeCode(get_class($this)));
|
||||
}
|
||||
return $sDisplayName;
|
||||
}
|
||||
|
||||
function GetBareDetails(web_page $oPage)
|
||||
|
||||
Reference in New Issue
Block a user