Icinga\Web\Form::onSuccess() must not return TRUE

When using Icinga\Web\Form directly without creating a specific sub-class
and calling handleRequest() one must not get redirected.

refs #5525
This commit is contained in:
Johannes Meyer 2014-08-27 10:09:29 +02:00
parent 45cbd3f067
commit 98b2bce15e

View File

@ -229,7 +229,7 @@ class Form extends Zend_Form
/**
* Perform actions after this form was submitted using a valid request
*
* Intended to be implemented by concrete form classes.
* Intended to be implemented by concrete form classes. The base implementation returns always FALSE.
*
* @param Request $request The valid request used to process this form
*
@ -237,7 +237,7 @@ class Form extends Zend_Form
*/
public function onSuccess(Request $request)
{
return true;
return false;
}
/**