|
@@ -214,7 +214,7 @@ abstract class cmdbAbstractObject extends CMDBObject
|
|
}
|
|
}
|
|
|
|
|
|
function GetBareDetails(WebPage $oPage)
|
|
function GetBareDetails(WebPage $oPage)
|
|
- {
|
|
|
|
|
|
+ {
|
|
$sHtml = '';
|
|
$sHtml = '';
|
|
$oAppContext = new ApplicationContext();
|
|
$oAppContext = new ApplicationContext();
|
|
$sStateAttCode = MetaModel::GetStateAttributeCode(get_class($this));
|
|
$sStateAttCode = MetaModel::GetStateAttributeCode(get_class($this));
|
|
@@ -266,7 +266,8 @@ abstract class cmdbAbstractObject extends CMDBObject
|
|
if (!empty($sTemplate))
|
|
if (!empty($sTemplate))
|
|
{
|
|
{
|
|
$oTemplate = new DisplayTemplate($sTemplate);
|
|
$oTemplate = new DisplayTemplate($sTemplate);
|
|
- $oTemplate->Render($oPage, array('class_name'=> MetaModel::GetName(get_class($this)),'class'=> get_class($this),'pkey'=> $this->GetKey(), 'name' => $this->GetName()));
|
|
|
|
|
|
+ $sNameAttCode = MetaModel::GetNameAttributeCode(get_class($this));
|
|
|
|
+ $oTemplate->Render($oPage, array('class_name'=> MetaModel::GetName(get_class($this)),'class'=> get_class($this),'pkey'=> $this->GetKey(), 'name' => $this->Get($sNameAttCode)));
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|