mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
TemplateTree: only use 'unstored' logic when...
...imports have been modified fixes #1088
This commit is contained in:
parent
179054b239
commit
fc9425ee89
@ -132,7 +132,10 @@ class TemplateTree
|
||||
|
||||
public function getAncestorsFor(IcingaObject $object)
|
||||
{
|
||||
if ($object->hasBeenModified()) {
|
||||
if ($object->hasBeenModified()
|
||||
&& $object->gotImports()
|
||||
&& $object->imports()->hasBeenModified()
|
||||
) {
|
||||
return $this->getAncestorsForUnstoredObject($object);
|
||||
} else {
|
||||
return $this->getAncestorsById($object->getProperty('id'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user