From c0e8f330275ee43340ccae047dc04b5bd2dba09b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 25 Oct 2022 09:36:46 +0200 Subject: [PATCH] DowntimeDetail: Build the remove URL in a more standardized way --- library/Icingadb/Widget/Detail/DowntimeDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Widget/Detail/DowntimeDetail.php b/library/Icingadb/Widget/Detail/DowntimeDetail.php index 4ca447a8..fbeb0692 100644 --- a/library/Icingadb/Widget/Detail/DowntimeDetail.php +++ b/library/Icingadb/Widget/Detail/DowntimeDetail.php @@ -54,7 +54,7 @@ class DowntimeDetail extends BaseHtmlElement protected function createCancelDowntimeForm() { $action = Links::downtimesDelete(); - $action->setParam('name', $this->downtime->name); + $action->setQueryString(QueryString::render(Filter::equal('name', $this->downtime->name))); return (new DeleteDowntimeForm()) ->setObjects([$this->downtime])