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()
|
||||
{
|
||||
if ($this->supportsGroups()) {
|
||||
if ($this->supportsGroups() && $this->hasBeenLoadedFromDb()) {
|
||||
$applied = array();
|
||||
if ($this instanceof IcingaHost) {
|
||||
$applied = $this->getAppliedGroups();
|
||||
|
|
Loading…
Reference in New Issue