From 062bc717fc37c805e41345d96bd5bd1de7750c18 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 6 Jul 2017 17:20:22 +0200 Subject: [PATCH] Settings: fix form handling and typo refs #486 --- application/controllers/SettingsController.php | 1 + application/forms/SelfServiceSettingsForm.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/SettingsController.php b/application/controllers/SettingsController.php index 02cfca00..f1a4ef5d 100644 --- a/application/controllers/SettingsController.php +++ b/application/controllers/SettingsController.php @@ -12,6 +12,7 @@ class SettingsController extends ActionController public function selfServiceAction() { $form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db())); + $form->handleRequest(); $hint = $this->translate( 'The Icinga Director Self Service API allows your Hosts to register' diff --git a/application/forms/SelfServiceSettingsForm.php b/application/forms/SelfServiceSettingsForm.php index ae0ec983..ee69b17d 100644 --- a/application/forms/SelfServiceSettingsForm.php +++ b/application/forms/SelfServiceSettingsForm.php @@ -196,7 +196,7 @@ class SelfServiceSettingsForm extends DirectorForm } $this->setSuccessMessage($this->translate( - 'Self Service Sttings have been stored' + 'Self Service Settings have been stored' )); parent::onSuccess();