mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
TemplateTree: make sure we are ready, even when...
...our very first object is unstored
This commit is contained in:
parent
6ba0e8e924
commit
f00473777e
@ -141,6 +141,7 @@ class TemplateTree
|
||||
|
||||
protected function getAncestorsForUnstoredObject(IcingaObject $object)
|
||||
{
|
||||
$this->requireTree();
|
||||
$names = $object->imports()->listImportNames();
|
||||
$ancestors = [];
|
||||
foreach ($names as $name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user