소스 검색

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);