mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
legacy/IcingaObject: Render groups only when it is a stored object
This broke activity log.
This commit is contained in:
parent
ff0553c9dd
commit
d6b9f3137a
@ -2152,7 +2152,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
*/
|
*/
|
||||||
protected function renderLegacyGroups()
|
protected function renderLegacyGroups()
|
||||||
{
|
{
|
||||||
if ($this->supportsGroups()) {
|
if ($this->supportsGroups() && $this->hasBeenLoadedFromDb()) {
|
||||||
$applied = array();
|
$applied = array();
|
||||||
if ($this instanceof IcingaHost) {
|
if ($this instanceof IcingaHost) {
|
||||||
$applied = $this->getAppliedGroups();
|
$applied = $this->getAppliedGroups();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user