IcingaTemplateResolver: ignore multicolumn key...

...objects on refresh (for now)

fixes #13081
This commit is contained in:
Thomas Gelf 2016-11-08 16:27:44 +01:00
parent 1a311bc9a9
commit 5bae792901
1 changed files with 4 additions and 1 deletions

View File

@ -379,7 +379,10 @@ class IcingaTemplateResolver
$parentNames = $object->imports; $parentNames = $object->imports;
self::$nameIdx[$object->object_name] = $parentNames; self::$nameIdx[$object->object_name] = $parentNames;
if ($object->hasBeenLoadedFromDb()) { if ($object->hasBeenLoadedFromDb()) {
self::$idIdx[$object->getId()] = $this->getIdsForNames($parentNames); $id = $object->getId();
if (! is_array($id)) {
self::$idIdx[$id] = $this->getIdsForNames($parentNames);
}
} }
return $this; return $this;
} }