mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
Fixed regression with the display of lists based on class that is not a leaf (aka standalone) class
SVN:trunk[1299]
This commit is contained in:
@@ -107,7 +107,14 @@ class DBObjectSet
|
|||||||
// Add the friendly name anytime
|
// Add the friendly name anytime
|
||||||
$oFriendlyNameAttDef = MetaModel::GetAttributeDef($sClass, 'friendlyname');
|
$oFriendlyNameAttDef = MetaModel::GetAttributeDef($sClass, 'friendlyname');
|
||||||
$aAttToLoadWithAttDef[$sClassAlias]['friendlyname'] = $oFriendlyNameAttDef;
|
$aAttToLoadWithAttDef[$sClassAlias]['friendlyname'] = $oFriendlyNameAttDef;
|
||||||
|
|
||||||
|
// Make sure that the final class is requested anytime, whatever the specification (needed for object construction!)
|
||||||
|
if (!MetaModel::IsStandaloneClass($sClass) && !array_key_exists('finalclass', $aAttList))
|
||||||
|
{
|
||||||
|
$aAttToLoadWithAttDef[$sClassAlias]['finalclass'] = MetaModel::GetAttributeDef($sClass, 'finalclass');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->m_aAttToLoad = $aAttToLoadWithAttDef;
|
$this->m_aAttToLoad = $aAttToLoadWithAttDef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user