This commit is contained in:
Daniel 2025-07-28 23:52:36 +08:00
parent 446c81cf80
commit 05e495406d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -3986,7 +3986,11 @@ func updateAttributeViewColumn(operation *Operation) (err error) {
if changeType {
for _, view := range attrView.Views {
removeAttributeViewGroup0(view)
if nil != view.Group {
if groupKey := view.GetGroupKey(attrView); nil != groupKey && groupKey.ID == operation.ID {
removeAttributeViewGroup0(view)
}
}
}
}
@ -4111,7 +4115,11 @@ func RemoveAttributeViewKey(avID, keyID string, removeRelationDest bool) (err er
}
for _, view := range attrView.Views {
removeAttributeViewGroup0(view)
if nil != view.Group {
if groupKey := view.GetGroupKey(attrView); nil != groupKey && groupKey.ID == keyID {
removeAttributeViewGroup0(view)
}
}
}
err = av.SaveAttributeView(attrView)