DowntimeDetail: Build the remove URL in a more standardized way

This commit is contained in:
Johannes Meyer 2022-10-25 09:36:46 +02:00
parent 86a0c1e544
commit c0e8f33027

View file

@ -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])