ObjectController: do not load objects twice

This commit is contained in:
Thomas Gelf 2015-08-03 13:41:42 +02:00
parent 4133733664
commit 9946bed438
1 changed files with 1 additions and 1 deletions

View File

@ -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,