Merge pull request #3143 from Icinga/bugfix/inactive-module-config-tabs-2977

Hide inactive modules' config tabs
This commit is contained in:
lippserd 2018-01-16 09:18:49 +01:00 committed by GitHub
commit c1497cf1c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -876,9 +876,13 @@ class Module
'urlParams' => array('name' => $this->getName()),
'label' => 'Module: ' . $this->getName()
));
foreach ($this->configTabs as $name => $config) {
$tabs->add($name, $config);
if ($this->app->getModuleManager()->hasEnabled($this->name)) {
foreach ($this->configTabs as $name => $config) {
$tabs->add($name, $config);
}
}
return $tabs;
}