mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
parent
37c7952ec7
commit
19ebdcfb37
1 changed files with 2 additions and 2 deletions
|
|
@ -227,8 +227,8 @@ class NavigationConfigForm extends ConfigForm
|
|||
}
|
||||
|
||||
$children = array();
|
||||
foreach ($config as $sectionName => $sectionConfig) {
|
||||
if ($sectionConfig->parent === $name) {
|
||||
foreach ($config->toArray() as $sectionName => $sectionConfig) {
|
||||
if (isset($sectionConfig['parent']) && $sectionConfig['parent'] === $name) {
|
||||
$children[] = $sectionName;
|
||||
$children = array_merge($children, $this->getFlattenedChildren($sectionName));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue