Skip to content

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

:art: Creating a dailynote existed no longer expands the doc tree https://github.com/siyuan-note/siyuan/issues/9959

Daniel2953870db56d
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 9767722aaf..d0d29880d2 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -801,6 +801,9 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
}
isSameAv := srcAv.ID == destAv.ID
+ if isSameAv {
+ destAv = srcAv
+ }
for _, keyValues := range srcAv.KeyValues {
if keyValues.Key.ID == operation.KeyID {
@@ -857,6 +860,13 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
Relation: &av.Relation{AvID: operation.AvID, IsTwoWay: operation.IsTwoWay, BackKeyID: operation.KeyID},
},
})
+
+ for _, v := range destAv.Views {
+ switch v.LayoutType {
+ case av.LayoutTypeTable:
+ v.Table.Columns = append(v.Table.Columns, &av.ViewTableColumn{ID: operation.KeyID})
+ }
+ }
}
err = av.SaveAttributeView(srcAv)