Service/TemplateController: fix links, use uuids

fixes #2411
This commit is contained in:
Thomas Gelf 2021-10-18 07:27:28 +02:00
parent cbc67439d8
commit e29c025d64
3 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ class ServiceController extends ObjectController
$this->actions()->add(Link::create(
$this->translate('back'),
'director/host/services',
['name' => $this->host->getObjectName()],
['uuid' => $this->host->getUniqueId()->toString()],
['class' => 'icon-left-big']
));
}

View File

@ -578,7 +578,7 @@ abstract class ObjectController extends ActionController
protected function addBackToObjectLink()
{
$params = [
'name' => $this->object->getObjectName(),
'uuid' => $this->object->getUniqueId()->toString(),
];
if ($this->object instanceof IcingaService) {

View File

@ -120,7 +120,7 @@ abstract class TemplateController extends CompatController
Link::create(
$this->translate('Modify'),
"director/$type/edit",
['name' => $templateName],
['uuid' => $template->getUniqueId()->toString()],
['class' => 'icon-edit']
)
]);