mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +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()
|
||||
{
|
||||
try {
|
||||
if ($this->getSubmitLabel() === $this->storeConfigLabel) {
|
||||
if ($this->storeResourceConfig()) {
|
||||
parent::onSuccess();
|
||||
@ -338,10 +337,8 @@ class KickstartForm extends QuickForm
|
||||
$kickstart = new KickstartHelper($this->getDb());
|
||||
unset($values['resource']);
|
||||
$kickstart->setConfig($values)->run();
|
||||
|
||||
parent::onSuccess();
|
||||
} catch (Exception $e) {
|
||||
$this->addException($e);
|
||||
}
|
||||
}
|
||||
|
||||
protected function getResourceName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user