mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaObject: give unstored import names
This commit is contained in:
parent
c15a6e1a90
commit
6ba0e8e924
@ -497,6 +497,12 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
$this->resolveUnresolvedRelatedProperty($name);
|
||||
}
|
||||
|
||||
if ($this->supportsImports() && $this->imports !== null
|
||||
&& $this->imports()->hasBeenModified()
|
||||
) {
|
||||
$this->imports()->getObjects();
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -2613,7 +2619,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
|
||||
public function listImportNames()
|
||||
{
|
||||
return $this->templateTree()->listParentNamesFor($this);
|
||||
if ($this->hasBeenModified()
|
||||
&& $this->imports !== null
|
||||
&& $this->imports()->hasBeenModified()
|
||||
) {
|
||||
return $this->imports()->listImportNames();
|
||||
} else {
|
||||
return $this->templateTree()->listParentNamesFor($this);
|
||||
}
|
||||
}
|
||||
|
||||
public function listImportIds()
|
||||
|
Loading…
x
Reference in New Issue
Block a user