Update library/Director/Web/Table/ActivityLogTable.php

Co-authored-by: Ravi Kumar Kempapura Srinivasa <33730024+raviks789@users.noreply.github.com>
This commit is contained in:
Eric Lippmann 2024-11-19 09:25:56 +01:00 committed by GitHub
parent 07786bc374
commit af699395a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 5 deletions

View File

@ -213,16 +213,15 @@ class ActivityLogTable extends ZfQueryBasedTable
// multi column key :(
if ($type === 'service' || $this->hasObjectFilter) {
$object = "\"$name\"";
} elseif ($type === 'scheduled_downtime') {
} else {
$delimiter = $type === 'scheduled_downtime' ? '-' : '';
$object = Link::create(
"\"$name\"",
'director/' . str_replace('_', '-', $type),
'director/' . str_replace('_', $delimiter, $type),
['name' => $name],
['title' => $this->translate('Jump to this object')]
);
} else {
$object = Link::create(
"\"$name\"",
}
'director/' . str_replace('_', '', $type),
['name' => $name],
['title' => $this->translate('Jump to this object')]