浏览代码

Bug fix for queries where the selected class is not the first one in the list

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2160 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
e79b3f4c64
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/metamodel.class.php

+ 2 - 1
core/metamodel.class.php

@@ -1970,7 +1970,8 @@ abstract class MetaModel
 			{
 				throw new CoreException("Wrong direction in ORDER BY spec, found '$bAscending' and expecting a boolean value");
 			}
-			$sFirstClassAlias = $oFilter->GetFirstJoinedClassAlias();
+			$sFirstClassAlias = $oFilter->GetClassAlias();
+			
 			if (self::IsValidAttCode($oFilter->GetClass(), $sFieldAlias))
 			{
 				$oAttDef = self::GetAttributeDef($oFilter->GetClass(), $sFieldAlias);