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:
Romain Quetiez
2011-06-23 12:32:15 +00:00
parent 20024729ec
commit 9d2a8d0a67

View File

@@ -107,7 +107,14 @@ class DBObjectSet
// Add the friendly name anytime
$oFriendlyNameAttDef = MetaModel::GetAttributeDef($sClass, 'friendlyname');
$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;
}
}