mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
IcingaObject: check for modified properties...
...once again after resolving unresolved related properties. fixes #1315
This commit is contained in:
parent
13eac58290
commit
5d52eaefd0
@ -512,8 +512,16 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
if (parent::hasBeenModified()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($this->hasUnresolvedRelatedProperties()) {
|
||||
$this->resolveUnresolvedRelatedProperties();
|
||||
|
||||
// Duplicates above code, but this makes it faster:
|
||||
if (parent::hasBeenModified()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->supportsCustomVars() && $this->vars !== null && $this->vars()->hasBeenModified()) {
|
||||
return true;
|
||||
}
|
||||
@ -552,6 +560,11 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function hasUnresolvedRelatedProperties()
|
||||
{
|
||||
return ! empty($this->unresolvedRelatedProperties);
|
||||
}
|
||||
|
||||
protected function hasUnresolvedRelatedProperty($name)
|
||||
{
|
||||
return array_key_exists($name, $this->unresolvedRelatedProperties);
|
||||
|
Loading…
x
Reference in New Issue
Block a user