Browse Source

Protect the optimization in case the object's friendlyname is requested.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3209 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 years ago
parent
commit
5026ca4768
1 changed files with 5 additions and 1 deletions
  1. 5 1
      webservices/export.php

+ 5 - 1
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;
+				}
 			}
 		}