mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
0fb495f541
commit
dd23bd9397
@ -1074,6 +1074,11 @@ class Form extends Zend_Form
|
|||||||
} else {
|
} else {
|
||||||
$this->getView()->layout()->redirectUrl = $this->getRedirectUrl()->getAbsoluteUrl();
|
$this->getView()->layout()->redirectUrl = $this->getRedirectUrl()->getAbsoluteUrl();
|
||||||
}
|
}
|
||||||
|
} elseif ($this->getIsApiTarget()) {
|
||||||
|
$this->getRequest()->sendJson(array(
|
||||||
|
'status' => 'fail',
|
||||||
|
'data' => array_merge($this->getMessages(), $this->getErrorMessages())
|
||||||
|
));
|
||||||
}
|
}
|
||||||
} 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