fix(缺陷管理): 修复缺陷管理多选输入框数据返显错误的问题

--bug=1036382 --user=宋天阳 【缺陷管理】创建缺陷-多选输入框字段显示错误 https://www.tapd.cn/55049933/s/1470419
This commit is contained in:
song-tianyang 2024-03-06 16:29:48 +08:00 committed by 刘瑞斌
parent 1e5a6eae13
commit c518e2b6ef
2 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,8 @@
</select>
<select id="getBugAllCustomFields" resultType="io.metersphere.bug.dto.response.BugCustomFieldDTO">
select cf.name, bcf.value, bcf.bug_id, bcf.field_id as id from bug_custom_field bcf left join custom_field cf on bcf.field_id = cf.id
select cf.name, bcf.value, bcf.bug_id, bcf.field_id as id, cf.type as type
from bug_custom_field bcf left join custom_field cf on bcf.field_id = cf.id
and cf.scene = 'BUG' and cf.scope_type = 'PROJECT' and scope_id = #{projectId}
where bug_id in
<foreach collection="ids" item="id" separator="," open="(" close=")">

View File

@ -565,6 +565,8 @@
if (item.id === 'status' && isCopy.value) {
// ,
tmpObj[item.id] = '';
} else if (item.type === 'MULTIPLE_SELECT') {
tmpObj[item.id] = JSON.parse(item.value);
} else {
tmpObj[item.id] = item.value;
}