Skip to content

Commit c14c7a5

Browse files
committed
Use new ConfigSectionForm
1 parent f03bfc6 commit c14c7a5

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

application/controllers/ConfigController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
namespace Icinga\Module\Pdfexport\Controllers;
77

88
use Icinga\Application\Config;
9-
use Icinga\Application\Logger;
109
use Icinga\Module\Pdfexport\Forms\BackendConfigForm;
11-
use Icinga\Web\Form\ConfigForm;
10+
use Icinga\Web\Form\ConfigSectionForm;
1211
use Icinga\Web\Notification;
1312
use ipl\Html\Attributes;
1413
use ipl\Html\Form;
@@ -91,7 +90,7 @@ public function backendAction(): void
9190
$this->redirectNow('__CLOSE__');
9291
});
9392

94-
$form->on(ConfigForm::ON_DELETE, function () use ($form) {
93+
$form->on(ConfigSectionForm::ON_DELETE, function () use ($form) {
9594
Notification::success($this->translate('Print backend deleted'));
9695
$this->redirectNow('__CLOSE__');
9796
});

application/forms/BackendConfigForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use Icinga\Module\Pdfexport\Backend\Chromedriver;
1010
use Icinga\Module\Pdfexport\Backend\Geckodriver;
1111
use Icinga\Module\Pdfexport\Backend\HeadlessChromeBackend;
12-
use Icinga\Web\Form\ConfigForm;
12+
use Icinga\Web\Form\ConfigSectionForm;
1313
use ipl\Validator\CallbackValidator;
1414

15-
class BackendConfigForm extends ConfigForm
15+
class BackendConfigForm extends ConfigSectionForm
1616
{
1717
public function assemble(): void
1818
{

0 commit comments

Comments
 (0)