mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
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:
parent
45cbd3f067
commit
98b2bce15e
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user