An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve av https://github.com/siyuan-note/siyuan/issues/15561
Daniel5efe525e3c4f
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex 1213b8bf37..0632f2750c 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -3083,7 +3083,10 @@ func fillDefaultValue(attrView *av.AttributeView, view, groupView *av.View, prevkeyValues.Values = append(keyValues.Values, newValue)} else {newValueRaw := newValue.GetValByType(keyValues.Key.Type)- existingVal.SetValByType(keyValues.Key.Type, newValueRaw)+ if av.KeyTypeBlock != existingVal.Type || (av.KeyTypeBlock == existingVal.Type && existingVal.IsDetached) {+ // 非主键的值直接覆盖,主键的值只覆盖非绑定块+ existingVal.SetValByType(keyValues.Key.Type, newValueRaw)+ }}}}