Skip to content

Commit

Permalink
Fix the unrelated tabs
Browse files Browse the repository at this point in the history
resolves #6934
  • Loading branch information
Alexander Fuhr committed Aug 19, 2014
1 parent cd825a4 commit 2f54ff4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/controllers/ConfigController.php
Expand Up @@ -67,7 +67,7 @@ public function indexAction()
$form->setConfiguration(IcingaConfig::app());
$form->setRequest($this->_request);
if ($form->isSubmittedAndValid()) {
if (!$this->writeConfigFile($form->getConfig(), 'config')) {
if (!$this->writeConfigFile($form->getConfig(), 'config')) {
return;
}
Notification::success('New configuration has successfully been stored');
Expand Down Expand Up @@ -104,6 +104,11 @@ public function loggingAction()
*/
public function modulesAction()
{
$this->view->tabs = Widget::create('tabs')->add('modules', array(
'title' => 'Modules',
'url' => 'config/modules'
));

$this->view->tabs->activate('modules');
$this->view->modules = Icinga::app()->getModuleManager()->select()
->from('modules')
Expand Down

0 comments on commit 2f54ff4

Please sign in to comment.