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->actions()->add(Link::create(
$this->translate('back'), $this->translate('back'),
'director/host/services', 'director/host/services',
['name' => $this->host->getObjectName()], ['uuid' => $this->host->getUniqueId()->toString()],
['class' => 'icon-left-big'] ['class' => 'icon-left-big']
)); ));
} }

View File

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

View File

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