mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
Make sure that 'source' nodes for ComputedImpactedItems are not added twice to the ticket.
SVN:trunk[3571]
This commit is contained in:
@@ -1373,6 +1373,8 @@
|
|||||||
foreach($oIterator as $oNode)
|
foreach($oIterator as $oNode)
|
||||||
{
|
{
|
||||||
if($oNode instanceof RelationObjectNode)
|
if($oNode instanceof RelationObjectNode)
|
||||||
|
{
|
||||||
|
if ($oNode->GetProperty('is_reached') && (!$oNode->GetProperty('source')))
|
||||||
{
|
{
|
||||||
$oObj = $oNode->GetProperty('object');
|
$oObj = $oNode->GetProperty('object');
|
||||||
$sRootClass = MetaModel::GetRootClass(get_class($oObj));
|
$sRootClass = MetaModel::GetRootClass(get_class($oObj));
|
||||||
@@ -1382,6 +1384,7 @@
|
|||||||
}
|
}
|
||||||
$aComputed[$sRootClass][$oObj->GetKey()] = $oObj;
|
$aComputed[$sRootClass][$oObj->GetKey()] = $oObj;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
|
if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI']))
|
||||||
|
|||||||
@@ -1376,7 +1376,7 @@
|
|||||||
{
|
{
|
||||||
if($oNode instanceof RelationObjectNode)
|
if($oNode instanceof RelationObjectNode)
|
||||||
{
|
{
|
||||||
if ($oNode->GetProperty('is_reached'))
|
if ($oNode->GetProperty('is_reached') && (!$oNode->GetProperty('source')))
|
||||||
{
|
{
|
||||||
$oObj = $oNode->GetProperty('object');
|
$oObj = $oNode->GetProperty('object');
|
||||||
$sRootClass = MetaModel::GetRootClass(get_class($oObj));
|
$sRootClass = MetaModel::GetRootClass(get_class($oObj));
|
||||||
|
|||||||
Reference in New Issue
Block a user