Settings: fix form handling and typo

refs #486
This commit is contained in:
Thomas Gelf 2017-07-06 17:20:22 +02:00
parent 27a51ac34c
commit 062bc717fc
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ class SettingsController extends ActionController
public function selfServiceAction() public function selfServiceAction()
{ {
$form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db())); $form = SelfServiceSettingsForm::create($this->db(), new Settings($this->db()));
$form->handleRequest();
$hint = $this->translate( $hint = $this->translate(
'The Icinga Director Self Service API allows your Hosts to register' 'The Icinga Director Self Service API allows your Hosts to register'

View File

@ -196,7 +196,7 @@ class SelfServiceSettingsForm extends DirectorForm
} }
$this->setSuccessMessage($this->translate( $this->setSuccessMessage($this->translate(
'Self Service Sttings have been stored' 'Self Service Settings have been stored'
)); ));
parent::onSuccess(); parent::onSuccess();