mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
A form is "submitted" when it was "sent" but no submit label was set
This enables us to use handleRequest() as is when no specific submit button is required. refs #5525
This commit is contained in:
parent
0ff79b0948
commit
6783d51f76
@ -373,7 +373,7 @@ class Form extends Zend_Form
|
|||||||
$formData = $this->getRequestData($request);
|
$formData = $this->getRequestData($request);
|
||||||
if ($this->wasSent($formData)) {
|
if ($this->wasSent($formData)) {
|
||||||
$this->populate($formData); // Necessary to get isSubmitted() to work
|
$this->populate($formData); // Necessary to get isSubmitted() to work
|
||||||
if ($this->isSubmitted()) {
|
if ($this->isSubmitted() || ! $this->getSubmitLabel()) {
|
||||||
if ($this->isValid($formData) && $this->onSuccess($request)) {
|
if ($this->isValid($formData) && $this->onSuccess($request)) {
|
||||||
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user