mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
@@ -4419,10 +4419,14 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
|
||||
|
||||
func regenAttrViewViewGroups(attrView *av.AttributeView, keyID string) {
|
||||
for _, view := range attrView.Views {
|
||||
if nil != view.Group && view.Group.Field == keyID {
|
||||
if nil != view.Group {
|
||||
groupKey, _ := attrView.GetKey(view.Group.Field)
|
||||
if nil == groupKey {
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
if av.KeyTypeTemplate != groupKey.Type && view.Group.Field != keyID {
|
||||
continue
|
||||
}
|
||||
|
||||
genAttrViewViewGroups(view, attrView)
|
||||
|
||||
Reference in New Issue
Block a user