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…
Reference in New Issue