From 6b86ac5090fa95031022ff81a3ce568de1150ac4 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 12 Jun 2014 14:45:33 +0000 Subject: [PATCH] Protect the optimization in case the object's friendlyname is requested. SVN:trunk[3209] --- webservices/export.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webservices/export.php b/webservices/export.php index c6a8450cc3..a6a01575f2 100644 --- a/webservices/export.php +++ b/webservices/export.php @@ -154,7 +154,11 @@ if (!empty($sExpression)) } else if($oAttDef instanceof AttributeFriendlyname) { - $aAliasToFields[$sClassAlias][] = $oAttDef->GetKeyAttCode(); + $sKeyAttCode = $oAttDef->GetKeyAttCode(); + if ($sKeyAttCode != 'id') + { + $aAliasToFields[$sClassAlias][] = $sKeyAttCode; + } } }