From 3f3afb3347f13e55fae31fdcb889f59331c97dbf Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 22 Nov 2025 18:01:44 +0800 Subject: [PATCH] :art: No longer automatically fills the database view's filter condition values after copying and pasting the bound block https://github.com/siyuan-note/siyuan/issues/12294 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/file.go | 2 +- kernel/model/transaction.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index ca539bb6d..f3ed9f62f 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -996,7 +996,7 @@ func DuplicateDoc(tree *parse.Tree) { AddAttributeViewBlock(nil, []map[string]interface{}{{ "id": n.ID, "isDetached": false, - }}, avID, "", "", "", "", false, map[string]interface{}{}) + }}, avID, "", "", "", "", true, map[string]interface{}{}) ReloadAttrView(avID) } return ast.WalkContinue diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index 0be647e05..78c2f019a 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -1216,7 +1216,7 @@ func (tx *Transaction) doLargeInsert(previousID string) (ret *TxErr) { AddAttributeViewBlock(tx, []map[string]interface{}{{ "id": insertedNode.ID, "isDetached": false, - }}, avID, "", "", "", previousID, false, map[string]interface{}{}) + }}, avID, "", "", "", previousID, true, map[string]interface{}{}) ReloadAttrView(avID) } @@ -1404,7 +1404,7 @@ func (tx *Transaction) doInsert(operation *Operation) (ret *TxErr) { AddAttributeViewBlock(tx, []map[string]interface{}{{ "id": insertedNode.ID, "isDetached": false, - }}, avID, "", "", "", previousID, false, map[string]interface{}{}) + }}, avID, "", "", "", previousID, true, map[string]interface{}{}) ReloadAttrView(avID) }