mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
ProcessChanges: make path optional for deleteNode
This commit is contained in:
parent
eb866bf4b1
commit
2dc08be767
1 changed files with 6 additions and 2 deletions
|
|
@ -96,13 +96,17 @@ class ProcessChanges
|
|||
|
||||
/**
|
||||
* @param Node $node
|
||||
* @param array $path
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function deleteNode(Node $node, array $path)
|
||||
public function deleteNode(Node $node, array $path = null)
|
||||
{
|
||||
$action = new NodeRemoveAction($node);
|
||||
$action->setPath($path);
|
||||
if ($path !== null) {
|
||||
$action->setPath($path);
|
||||
}
|
||||
|
||||
return $this->push($action);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue