mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
37c7952ec7
commit
19ebdcfb37
@ -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…
x
Reference in New Issue
Block a user