mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964
This commit is contained in:
parent
ed302633f6
commit
7136967a73
1 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue