mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
446c81cf80
commit
05e495406d
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue