mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +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) {
|
func regenAttrViewViewGroups(attrView *av.AttributeView, keyID string) {
|
||||||
for _, view := range attrView.Views {
|
for _, view := range attrView.Views {
|
||||||
if nil != view.Group && view.Group.Field == keyID {
|
if nil != view.Group {
|
||||||
groupKey, _ := attrView.GetKey(view.Group.Field)
|
groupKey, _ := attrView.GetKey(view.Group.Field)
|
||||||
if nil == groupKey {
|
if nil == groupKey {
|
||||||
return
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if av.KeyTypeTemplate != groupKey.Type && view.Group.Field != keyID {
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
genAttrViewViewGroups(view, attrView)
|
genAttrViewViewGroups(view, attrView)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue