mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Need to be reminded that replacement operations are not supported after grouping by doc https://github.com/siyuan-note/siyuan/issues/10161
This commit is contained in:
@@ -99,7 +99,7 @@ func findReplace(c *gin.Context) {
|
||||
|
||||
err := model.FindReplace(k, r, replaceTypes, ids, paths, boxes, types, method, orderBy, groupBy)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Code = 1
|
||||
ret.Msg = err.Error()
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
||||
return
|
||||
|
||||
@@ -283,6 +283,12 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
||||
return
|
||||
}
|
||||
|
||||
if 0 != groupBy {
|
||||
// 按文档分组后不支持替换 Need to be reminded that replacement operations are not supported after grouping by doc https://github.com/siyuan-note/siyuan/issues/10161
|
||||
err = errors.New(Conf.Language(221))
|
||||
return
|
||||
}
|
||||
|
||||
// No longer trim spaces for the keyword and replacement https://github.com/siyuan-note/siyuan/issues/9229
|
||||
if keyword == replacement {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user