Monitoring_ConfigController: don't use SecurityForm::isSubmittedAndValid()

refs #5525
This commit is contained in:
Alexander Klimov 2014-08-21 11:51:49 +02:00
parent b81e96574a
commit d1b1bc368f
1 changed files with 2 additions and 2 deletions

View File

@ -257,8 +257,8 @@ class Monitoring_ConfigController extends ModuleActionController
$form = new SecurityForm();
$form->setConfiguration($this->Config()->get('security'));
$form->setRequest($this->getRequest());
if ($form->isSubmittedAndValid()) {
$request = $this->getRequest();
if ($request->isPost() && $form->isValid($request->getPost())) {
$config = $this->Config()->toArray();
$config['security'] = $form->getConfig();
if ($this->writeConfiguration(new Zend_Config($config))) {