Parcourir la source

Fixed the computation of the lowest common ancestor.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3837 a333f486-631f-4898-b8df-5754b55c2be0
dflaven il y a 9 ans
Parent
commit
b3d81c148c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      core/oql/oqlquery.class.inc.php

+ 2 - 2
core/oql/oqlquery.class.inc.php

@@ -715,11 +715,11 @@ class OqlUnionQuery extends OqlQuery
 		{
 			$sRet = $sClassA;
 		}
-		elseif (in_array($sClassA, $oModelReflection->EnumChildClasses($sClassA)))
+		elseif (in_array($sClassA, $oModelReflection->EnumChildClasses($sClassB)))
 		{
 			$sRet = $sClassB;
 		}
-		elseif (in_array($sClassB, $oModelReflection->EnumChildClasses($sClassB)))
+		elseif (in_array($sClassB, $oModelReflection->EnumChildClasses($sClassA)))
 		{
 			$sRet = $sClassA;
 		}