mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-06 05:29:35 -05:00
NodeApplyManualOrderAction: Also include non-toplevel processes
This commit is contained in:
parent
72f3af9fc9
commit
0d0ac5381e
1 changed files with 1 additions and 3 deletions
|
|
@ -3,7 +3,6 @@
|
|||
namespace Icinga\Module\Businessprocess\Modification;
|
||||
|
||||
use Icinga\Module\Businessprocess\BpConfig;
|
||||
use Icinga\Module\Businessprocess\BpNode;
|
||||
|
||||
class NodeApplyManualOrderAction extends NodeAction
|
||||
{
|
||||
|
|
@ -15,8 +14,7 @@ class NodeApplyManualOrderAction extends NodeAction
|
|||
public function applyTo(BpConfig $config)
|
||||
{
|
||||
$i = 0;
|
||||
foreach ($config->getRootNodes() as $name => $node) {
|
||||
/** @var BpNode $node */
|
||||
foreach ($config->getBpNodes() as $name => $node) {
|
||||
if ($node->getDisplay() > 0) {
|
||||
$node->setDisplay(++$i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue