From 8cf2866a6ac27bf133614e225f826dccc0496dba Mon Sep 17 00:00:00 2001 From: Bethuel Mmbaga Date: Thu, 2 Nov 2023 16:33:20 +0300 Subject: [PATCH] Add integration reference field to group copy method (#1283) The group copy method now includes the IntegrationReference field in its output. This change was made to ensure that the integration reference information is retained when a group instance is copied, which previously was not the case. --- management/server/group.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/management/server/group.go b/management/server/group.go index 201a9cf8e..d626c3538 100644 --- a/management/server/group.go +++ b/management/server/group.go @@ -45,10 +45,11 @@ func (g *Group) EventMeta() map[string]any { func (g *Group) Copy() *Group { group := &Group{ - ID: g.ID, - Name: g.Name, - Issued: g.Issued, - Peers: make([]string, len(g.Peers)), + ID: g.ID, + Name: g.Name, + Issued: g.Issued, + Peers: make([]string, len(g.Peers)), + IntegrationReference: g.IntegrationReference, } copy(group.Peers, g.Peers) return group