From 8f15fe3c0e2d098de7c5fec86fcc0b0bbaac2123 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 25 Aug 2017 13:47:04 +0200 Subject: [PATCH] Host applied services: route links to _self --- .../Director/Web/Table/IcingaHostAppliedForServiceTable.php | 4 +++- library/Director/Web/Table/IcingaHostAppliedServicesTable.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/library/Director/Web/Table/IcingaHostAppliedForServiceTable.php b/library/Director/Web/Table/IcingaHostAppliedForServiceTable.php index 1d6563ff..e4eff817 100644 --- a/library/Director/Web/Table/IcingaHostAppliedForServiceTable.php +++ b/library/Director/Web/Table/IcingaHostAppliedForServiceTable.php @@ -28,7 +28,9 @@ class IcingaHostAppliedForServiceTable extends SimpleQueryBasedTable */ public static function load(IcingaHost $host, CustomVariableDictionary $dict) { - return (new static())->setHost($host)->setDictionary($dict); + $table = (new static())->setHost($host)->setDictionary($dict); + $table->attributes()->set('data-base-target', '_self'); + return $table; } public function setDictionary(CustomVariableDictionary $dict) diff --git a/library/Director/Web/Table/IcingaHostAppliedServicesTable.php b/library/Director/Web/Table/IcingaHostAppliedServicesTable.php index 60fbf7d6..cac65fc4 100644 --- a/library/Director/Web/Table/IcingaHostAppliedServicesTable.php +++ b/library/Director/Web/Table/IcingaHostAppliedServicesTable.php @@ -27,7 +27,9 @@ class IcingaHostAppliedServicesTable extends SimpleQueryBasedTable */ public static function load(IcingaHost $host) { - return (new static())->setHost($host); + $table = (new static())->setHost($host); + $table->attributes()->set('data-base-target', '_self'); + return $table; } public function setTitle($title)