mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
Properly optimize the columns to load, when subitems are requested.
SVN:2.0.2[3169]
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");
|
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
|
// Read query parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user