mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-26 14:02:53 -05:00
AddNodeForm: Don't allow to import imported nodes
This commit is contained in:
parent
71fb738016
commit
a1df0347f5
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ namespace Icinga\Module\Businessprocess\Forms;
|
|||
|
||||
use Icinga\Module\Businessprocess\BpNode;
|
||||
use Icinga\Module\Businessprocess\BpConfig;
|
||||
use Icinga\Module\Businessprocess\ImportedNode;
|
||||
use Icinga\Module\Businessprocess\Modification\ProcessChanges;
|
||||
use Icinga\Module\Businessprocess\Storage\Storage;
|
||||
use Icinga\Module\Businessprocess\Web\Form\QuickForm;
|
||||
|
|
@ -400,7 +401,7 @@ class AddNodeForm extends QuickForm
|
|||
}
|
||||
|
||||
foreach ($bp->getNodes() as $node) {
|
||||
if ($node instanceof BpNode && ! isset($parents[$node->getName()])) {
|
||||
if (! $node instanceof ImportedNode && $node instanceof BpNode && ! isset($parents[$node->getName()])) {
|
||||
$name = $node->getName();
|
||||
if ($differentFile) {
|
||||
$name = '@' . $file . ':' . $name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue