mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-06 13:39:34 -05:00
BpNode: Reset keys when automatically sorting nodes
This commit is contained in:
parent
da4bf7ffc6
commit
72f3af9fc9
1 changed files with 2 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ class BpNode extends Node
|
|||
{
|
||||
if (! $this->bp->getMetadata()->isManuallyOrdered()) {
|
||||
natcasesort($names);
|
||||
$names = array_values($names);
|
||||
}
|
||||
|
||||
$this->childNames = $names;
|
||||
|
|
@ -451,6 +452,7 @@ class BpNode extends Node
|
|||
$this->children = array();
|
||||
if (! $this->bp->getMetadata()->isManuallyOrdered()) {
|
||||
natcasesort($this->childNames);
|
||||
$this->childNames = array_values($this->childNames);
|
||||
}
|
||||
foreach ($this->childNames as $name) {
|
||||
$this->children[$name] = $this->bp->getNode($name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue