Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database grouping by field https://github.com/siyuan-note/siyuan/issues/10964

Daniel546742b43c98
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 64015b3e99..3511ffe166 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -198,7 +198,14 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err error
return err
}
- view.Group = group
+ if nil == view.Group {
+ view.Group = group
+ } else {
+ if err = copier.Copy(view.Group, group); nil != err {
+ return
+ }
+ }
+
genAttrViewViewGroups(view, attrView)
return err
}