From 5b97e477b49d3203917b526bf0fcca66382f9d30 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 20 Jul 2017 22:35:41 +0200 Subject: [PATCH] SettingsController: re-add module config page fixes #1025 --- application/controllers/SettingsController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/application/controllers/SettingsController.php b/application/controllers/SettingsController.php index 9a7374c4..9d1e02fc 100644 --- a/application/controllers/SettingsController.php +++ b/application/controllers/SettingsController.php @@ -2,6 +2,7 @@ namespace Icinga\Module\Director\Controllers; +use Icinga\Module\Director\Forms\KickstartForm; use Icinga\Module\Director\Forms\SelfServiceSettingsForm; use Icinga\Module\Director\Settings; use Icinga\Module\Director\Web\Controller\ActionController; @@ -9,6 +10,18 @@ use ipl\Html\Html; class SettingsController extends ActionController { + public function indexAction() + { + // Hint: this is for the module configuration tab, legacy code + $this->view->tabs = $this->Module() + ->getConfigTabs() + ->activate('config'); + + $this->view->form = KickstartForm::load() + ->setModuleConfig($this->Config()) + ->handleRequest(); + } + public function selfServiceAction() { $form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));