diff --git a/library/Icingadb/Widget/Detail/CommentDetail.php b/library/Icingadb/Widget/Detail/CommentDetail.php index cf14e6aa..eb13523d 100644 --- a/library/Icingadb/Widget/Detail/CommentDetail.php +++ b/library/Icingadb/Widget/Detail/CommentDetail.php @@ -11,6 +11,8 @@ use Icinga\Module\Icingadb\Common\TicketLinks; use Icinga\Module\Icingadb\Model\Comment; use Icinga\Module\Icingadb\Widget\MarkdownText; use Icinga\Module\Icingadb\Forms\Command\Object\DeleteCommentForm; +use ipl\Stdlib\Filter; +use ipl\Web\Filter\QueryString; use ipl\Web\Widget\HorizontalKeyValue; use ipl\Web\Widget\StateBall; use ipl\Web\Widget\TimeUntil; @@ -108,7 +110,7 @@ class CommentDetail extends BaseHtmlElement } $action = Links::commentsDelete(); - $action->setParam('name', $this->comment->name); + $action->setQueryString(QueryString::render(Filter::equal('name', $this->comment->name))); return (new DeleteCommentForm()) ->setObjects([$this->comment]) 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])