fix(缺陷管理): 修复缺陷管理多选输入框数据返显错误的问题
--bug=1036382 --user=宋天阳 【缺陷管理】创建缺陷-多选输入框字段显示错误 https://www.tapd.cn/55049933/s/1470419
This commit is contained in:
parent
1e5a6eae13
commit
c518e2b6ef
|
@ -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=")">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue