mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
ObjectController: show object name, not 'Modify..'
This commit is contained in:
parent
dda16fd0d0
commit
547b13d53f
@ -91,7 +91,7 @@ abstract class ObjectController extends ActionController
|
|||||||
&& $this->object->isExternal()
|
&& $this->object->isExternal()
|
||||||
&& ! in_array($this->object->getShortTableName(), $allowedExternals)
|
&& ! in_array($this->object->getShortTableName(), $allowedExternals)
|
||||||
) {
|
) {
|
||||||
return $this->externalObjectInfo();
|
return $this->externalObjectInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->editAction();
|
return $this->editAction();
|
||||||
@ -148,7 +148,7 @@ abstract class ObjectController extends ActionController
|
|||||||
$this->view->form = $form = $this->loadForm($formName)->setDb($this->db());
|
$this->view->form = $form = $this->loadForm($formName)->setDb($this->db());
|
||||||
$form->setObject($object);
|
$form->setObject($object);
|
||||||
|
|
||||||
$this->view->title = sprintf($this->translate('Modify %s'), ucfirst($ltype));
|
$this->view->title = $object->object_name;
|
||||||
$this->view->form->handleRequest();
|
$this->view->form->handleRequest();
|
||||||
|
|
||||||
$this->view->actionLinks = $this->view->qlink(
|
$this->view->actionLinks = $this->view->qlink(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user