mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: do not load objects twice
This commit is contained in:
parent
4133733664
commit
9946bed438
@ -192,7 +192,7 @@ abstract class ObjectController extends ActionController
|
||||
|
||||
protected function loadObject()
|
||||
{
|
||||
if ($name = $this->params->get('name')) {
|
||||
if ($this->object === null && $name = $this->params->get('name')) {
|
||||
$this->object = IcingaObject::loadByType(
|
||||
$this->getType(),
|
||||
$name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user