mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°8772 - Fix error
This commit is contained in:
@@ -124,10 +124,12 @@ class DependencyMap
|
||||
public function GetImpacted(string $sBlockName): array
|
||||
{
|
||||
$aImpacted = [];
|
||||
foreach ($this->aOutputToInputsMap[$sBlockName] as $aBindings) {
|
||||
foreach ($aBindings as $oBinding) {
|
||||
$oDestBlock = $oBinding->oDestinationIO->GetOwnerBlock();
|
||||
$aImpacted[] = $oDestBlock;
|
||||
if (array_key_exists($sBlockName, $this->aOutputToInputsMap)) {
|
||||
foreach ($this->aOutputToInputsMap[$sBlockName] as $aBindings) {
|
||||
foreach ($aBindings as $oBinding) {
|
||||
$oDestBlock = $oBinding->oDestinationIO->GetOwnerBlock();
|
||||
$aImpacted[] = $oDestBlock;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user