mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-20 19:22:54 -05:00
AddNodeForm: do not store a parent in case...
...there is no such fixes #83
This commit is contained in:
parent
39ddd47b20
commit
dae799fd1e
1 changed files with 3 additions and 1 deletions
|
|
@ -383,7 +383,9 @@ class AddNodeForm extends QuickForm
|
|||
case 'new-process':
|
||||
$properties = $this->getValues();
|
||||
unset($properties['name']);
|
||||
$properties['parentName'] = $this->parent->getName();
|
||||
if ($this->hasParentNode()) {
|
||||
$properties['parentName'] = $this->parent->getName();
|
||||
}
|
||||
$changes->createNode($this->getValue('name'), $properties);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue