Hide inactive modules' config tabs

refs #2977
This commit is contained in:
Alexander A. Klimov 2017-11-24 13:40:03 +01:00
parent 2a4fdd12d7
commit 6cdad7c5c1
1 changed files with 6 additions and 2 deletions

View File

@ -874,9 +874,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;
}