mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
Properly optimize the columns to load, when subitems are requested.
SVN:trunk[3168]
This commit is contained in:
@@ -147,6 +147,11 @@ if (!empty($sExpression))
|
||||
{
|
||||
throw new CoreException("Invalid field specification $sField: $sAttCode is not a valid attribute for $sClass");
|
||||
}
|
||||
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
||||
if ($oAttDef instanceof AttributeSubItem)
|
||||
{
|
||||
$aAliasToFields[$sClassAlias][] = $oAttDef->GetParentAttCode();
|
||||
}
|
||||
}
|
||||
|
||||
// Read query parameters
|
||||
|
||||
Reference in New Issue
Block a user