From 2663d0a4f41a513727690d14963750092aa4abc4 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 3 Jun 2023 22:57:06 +0800 Subject: [PATCH] :art: Support for opening file history on the doc tree https://github.com/siyuan-note/siyuan/issues/8448 --- kernel/model/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/history.go b/kernel/model/history.go index f84185683..fa6532f5f 100644 --- a/kernel/model/history.go +++ b/kernel/model/history.go @@ -378,7 +378,7 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt stmt += "1=1" } - if HistoryTypeDocName == typ || HistoryTypeDoc == typ { + if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ { if "all" != op { stmt += " AND op = '" + op + "'" }