From 4136f2fe4360359ebf18609ea0319d96dc8f0636 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 11 Dec 2019 20:39:48 +0100 Subject: [PATCH] Config: Fix base target of 'Create Command Transport' button link --- application/controllers/ConfigController.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index 3b6fcb1b..65588954 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -36,12 +36,13 @@ class ConfigController extends Controller $this->mergeTabs($this->Module()->getConfigTabs()->activate('command-transports')); - $this->addControl(new ButtonLink( - $this->translate('Create Command Transport'), - 'icingadb/config/create-command-transport', - 'plus', - ['data-base-target' => '_next'] - )); + $this->addControl( + (new ButtonLink( + $this->translate('Create Command Transport'), + 'icingadb/config/create-command-transport', + 'plus' + ))->setBaseTarget('_next') + ); $this->addFormToContent($form); }