From b0b0562578ae8876f0b654e551b4dcf4aa4a592c Mon Sep 17 00:00:00 2001 From: moreamazingnick Date: Mon, 28 Mar 2022 15:51:06 +0200 Subject: [PATCH] fixes wrong url in activitylog for scheduledowntime #2456 --- library/Director/Web/Table/ActivityLogTable.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/Director/Web/Table/ActivityLogTable.php b/library/Director/Web/Table/ActivityLogTable.php index 5460bc236..a694575b9 100644 --- a/library/Director/Web/Table/ActivityLogTable.php +++ b/library/Director/Web/Table/ActivityLogTable.php @@ -212,6 +212,13 @@ protected function makeLink($row) // multi column key :( if ($type === 'service' || $this->hasObjectFilter) { $object = "\"$name\""; + } elseif ($type === 'scheduled_downtime') { + $object = Link::create( + "\"$name\"", + 'director/' . str_replace('_', '-', $type), + ['name' => $name], + ['title' => $this->translate('Jump to this object')] + ); } else { $object = Link::create( "\"$name\"",