From 8a789a857318960a639c4760aa8bcb11e73fcd12 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 24 Oct 2023 09:56:04 +0800 Subject: [PATCH] :art: Shallow clone the corresponding database when the template contains database blocks https://github.com/siyuan-note/siyuan/issues/9494 --- kernel/model/template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/template.go b/kernel/model/template.go index b5b5c8073..fb4052b9c 100644 --- a/kernel/model/template.go +++ b/kernel/model/template.go @@ -251,6 +251,7 @@ func renderTemplate(p, id string, preview bool) (string, error) { // 重新生成 ID n.ID = ast.NewNodeID() n.SetIALAttr("id", n.ID) + n.RemoveIALAttr(av.NodeAttrNameAvs) // Blocks created via template update time earlier than creation time https://github.com/siyuan-note/siyuan/issues/8607 refreshUpdated(n)