This commit is contained in:
Daniel 2025-07-25 22:31:46 +08:00
parent 59d8db4f24
commit 3c0933beac
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -107,7 +107,7 @@ func removeAttributeViewGroup(avID, blockID string) (err error) {
return err
}
view.Group, view.Groups, view.GroupUpdated = nil, nil, 0
removeAttributeViewGroup0(view)
err = av.SaveAttributeView(attrView)
if err != nil {
logging.LogErrorf("save attribute view [%s] failed: %s", avID, err)
@ -116,6 +116,10 @@ func removeAttributeViewGroup(avID, blockID string) (err error) {
return nil
}
func removeAttributeViewGroup0(view *av.View) {
view.Group, view.Groups, view.GroupUpdated = nil, nil, 0
}
func (tx *Transaction) doSyncAttrViewTableColWidth(operation *Operation) (ret *TxErr) {
err := syncAttrViewTableColWidth(operation)
if err != nil {
@ -3911,6 +3915,10 @@ func RemoveAttributeViewKey(avID, keyID string, removeRelationDest bool) (err er
}
}
for _, view := range attrView.Views {
removeAttributeViewGroup0(view)
}
err = av.SaveAttributeView(attrView)
return
}