mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Form: Improve code readability..
..and avoid the necessity to provide another mock when testing Form::handleRequest(). refs #8758
This commit is contained in:
parent
5e1ea958b4
commit
8f2849f32a
@ -965,9 +965,9 @@ class Form extends Zend_Form
|
|||||||
|| ($this->onSuccess === null && false !== $this->onSuccess()))) {
|
|| ($this->onSuccess === null && false !== $this->onSuccess()))) {
|
||||||
if (! $frameUpload) {
|
if (! $frameUpload) {
|
||||||
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
||||||
|
} else {
|
||||||
|
$this->getView()->layout()->redirectUrl = $this->getRedirectUrl()->getAbsoluteUrl();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->getView()->layout()->redirectUrl = $this->getRedirectUrl()->getAbsoluteUrl();
|
|
||||||
}
|
}
|
||||||
} elseif ($this->getValidatePartial()) {
|
} elseif ($this->getValidatePartial()) {
|
||||||
// The form can't be processed but we may want to show validation errors though
|
// The form can't be processed but we may want to show validation errors though
|
||||||
|
Loading…
x
Reference in New Issue
Block a user