Skip to content

Commit

Permalink
fixes wrong url in activitylog for scheduledowntime Icinga#2456
Browse files Browse the repository at this point in the history
  • Loading branch information
moreamazingnick authored Mar 28, 2022
1 parent e134f80 commit b0b0562
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/Director/Web/Table/ActivityLogTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down

0 comments on commit b0b0562

Please sign in to comment.