Forráskód Böngészése

Fixed regression (HKeys)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1474 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 éve
szülő
commit
e6aa593bb3
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      addons/userrights/userrightsprofile.class.inc.php

+ 1 - 1
addons/userrights/userrightsprofile.class.inc.php

@@ -795,6 +795,7 @@ exit;
 		$oListExpr = ListExpression::FromScalars($aIds);
 		
 		// Check if the condition points to a hierarchical key
+		$bConditionAdded = false;
 		if ($sAttCode == 'id')
 		{
 			// Filtering on the objects themselves
@@ -812,7 +813,6 @@ exit;
 		else
 		{
 			$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
-			$bConditionAdded = false;
 			if ($oAttDef->IsExternalKey())
 			{
 				$sHierarchicalKeyCode = MetaModel::IsHierarchicalClass($oAttDef->GetTargetClass());