Skip to content

Commit

Permalink
IcingaObjectGroup: no membership refresh w/o assign
Browse files Browse the repository at this point in the history
fixes #2784
  • Loading branch information
Thomas-Gelf authored and nilmerg committed Jan 19, 2024
1 parent 0493f93 commit 6e57e6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down
6 changes: 4 additions & 2 deletions library/Director/Objects/IcingaObjectGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ protected function beforeStore()
return;
}
} else {
if ($this->get('assign_filter') === null) {
if ($this->hasProperty('assign_filter') && $this->get('assign_filter') === null) {
$this->memberShipShouldBeRefreshed = false;
return;
}
}

$this->memberShipShouldBeRefreshed = true;
if ($this->hasProperty('assign_filter')) {
$this->memberShipShouldBeRefreshed = true;
}
}

protected function notifyResolvers()
Expand Down

0 comments on commit 6e57e6d

Please sign in to comment.