IcingaObjectGroup: no membership refresh w/o assign

fixes #2784
This commit is contained in:
Thomas Gelf 2024-01-18 10:11:53 +01:00 committed by Johannes Meyer
parent 0493f93a74
commit 6e57e6dc98
2 changed files with 14 additions and 2 deletions

View File

@ -4,6 +4,16 @@
Please make sure to always read our [Upgrading](05-Upgrading.md) documentation
before switching to a new version.
v1.11.1 (unreleased)
--------------------
### Internals
* FIX: UserGroup creation failed since v1.10.0 (#2784)
### Fixed issues
* You can find issues and feature requests related to this release on our
[roadmap](https://github.com/Icinga/icingaweb2-module-director/milestone/35?closed=1)
v1.11.0
-------

View File

@ -43,14 +43,16 @@ abstract class IcingaObjectGroup extends IcingaObject implements ExportInterface
return;
}
} else {
if ($this->get('assign_filter') === null) {
if ($this->hasProperty('assign_filter') && $this->get('assign_filter') === null) {
$this->memberShipShouldBeRefreshed = false;
return;
}
}
if ($this->hasProperty('assign_filter')) {
$this->memberShipShouldBeRefreshed = true;
}
}
protected function notifyResolvers()
{