mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
KickstartForm: let parent handle exceptions
This commit is contained in:
parent
cb9fff90ef
commit
489d4ab1a3
@ -315,7 +315,6 @@ class KickstartForm extends QuickForm
|
|||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
if ($this->getSubmitLabel() === $this->storeConfigLabel) {
|
if ($this->getSubmitLabel() === $this->storeConfigLabel) {
|
||||||
if ($this->storeResourceConfig()) {
|
if ($this->storeResourceConfig()) {
|
||||||
parent::onSuccess();
|
parent::onSuccess();
|
||||||
@ -338,10 +337,8 @@ class KickstartForm extends QuickForm
|
|||||||
$kickstart = new KickstartHelper($this->getDb());
|
$kickstart = new KickstartHelper($this->getDb());
|
||||||
unset($values['resource']);
|
unset($values['resource']);
|
||||||
$kickstart->setConfig($values)->run();
|
$kickstart->setConfig($values)->run();
|
||||||
|
|
||||||
parent::onSuccess();
|
parent::onSuccess();
|
||||||
} catch (Exception $e) {
|
|
||||||
$this->addException($e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getResourceName()
|
protected function getResourceName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user