From 6703d5621d59931b164b09481f7116a54e4e6602 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 23 May 2014 13:22:46 +0000 Subject: [PATCH] Properly optimize the columns to load, when subitems are requested. SVN:2.0.2[3169] --- webservices/export.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webservices/export.php b/webservices/export.php index 6a53881d5f..8106a0b169 100644 --- a/webservices/export.php +++ b/webservices/export.php @@ -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