fix(缺陷管理): 缺陷内容中用例步骤&&前置&&描述图片保存问题

--bug=1046616 --user=宋昌昌 【测试计划】项目未集成三方-功能用例-新建缺陷-自定义模版-创建报SQL异常 https://www.tapd.cn/55049933/s/1579766
This commit is contained in:
song-cc-rock 2024-09-18 15:51:48 +08:00 committed by Craftsman
parent 7d2fa6ae0d
commit 8dd0fe9e30
1 changed files with 2 additions and 1 deletions

View File

@ -1376,7 +1376,8 @@ public class BugService {
private void filterRichTextTmpFile(BugEditRequest request) { private void filterRichTextTmpFile(BugEditRequest request) {
// 项目模板带过来的图片文件不处理 // 项目模板带过来的图片文件不处理
if (CollectionUtils.isNotEmpty(request.getRichTextTmpFileIds())) { if (CollectionUtils.isNotEmpty(request.getRichTextTmpFileIds())) {
request.getRichTextTmpFileIds().removeIf(tmpFileId -> request.getDescription().contains("/project/template/img/preview/" + request.getProjectId() + "/" + tmpFileId)); request.getRichTextTmpFileIds().removeIf(tmpFileId -> request.getDescription().contains("/project/template/img/preview/" + request.getProjectId() + "/" + tmpFileId) ||
request.getDescription().contains("/attachment/download/file/" + request.getProjectId() + "/" + tmpFileId));
} }
} }