mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Data History - File history - Assets search results and operation conditions do not match https://github.com/siyuan-note/siyuan/issues/11171
This commit is contained in:
@@ -404,11 +404,11 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt
|
||||
} else {
|
||||
stmt += "1=1"
|
||||
}
|
||||
if "all" != op {
|
||||
stmt += " AND op = '" + op + "'"
|
||||
}
|
||||
|
||||
if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {
|
||||
if "all" != op {
|
||||
stmt += " AND op = '" + op + "'"
|
||||
}
|
||||
if HistoryTypeDocName == typ || HistoryTypeDoc == typ {
|
||||
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user