mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
N°971 Portal: Fix Browse brick n:n level links in tree and mosaic display
This commit is contained in:
@@ -314,7 +314,16 @@ class BrowseBrickController extends BrickController
|
||||
$oQuery = $aLevelsProperties[$aLevelProperties['levels'][0]]['search'];
|
||||
if (!empty($sNodeId))
|
||||
{
|
||||
$oQuery->AddCondition($aLevelsProperties[$aLevelProperties['levels'][0]]['parent_att'], $sNodeId);
|
||||
$sParentAttCode = $aLevelsProperties[$aLevelProperties['levels'][0]]['parent_att'];
|
||||
$oParentAtt = MetaModel::GetAttributeDef($oQuery->GetClass(), $sParentAttCode);
|
||||
if($oParentAtt instanceof \AttributeLinkedSetIndirect)
|
||||
{
|
||||
$oQuery->AddConditionAdvanced($sParentAttCode.'->'.$oParentAtt->GetExtKeyToRemote(), $sNodeId);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oQuery->AddCondition($sParentAttCode, $sNodeId);
|
||||
}
|
||||
}
|
||||
$bFoundLevel = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user