From d24f607960a36084e2d235cb29f260f153e8a3ae Mon Sep 17 00:00:00 2001 From: jianxing Date: Sun, 25 Jun 2023 16:24:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=95=B4=E5=9E=8B=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=8D=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E4=BF=9D=E5=AD=98=E4=B8=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027324 --user=陈建星 [测试跟踪]github #25007 对接禅道配置解决方案和重复ID字段后,MS能正常同步解决方案和重复ID,但是MS无法正常提交bug了 https://www.tapd.cn/55049933/s/1385567 --- framework/sdk-parent/frontend/src/utils/custom_field.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/framework/sdk-parent/frontend/src/utils/custom_field.js b/framework/sdk-parent/frontend/src/utils/custom_field.js index 7bddf9aa0f..807efca394 100644 --- a/framework/sdk-parent/frontend/src/utils/custom_field.js +++ b/framework/sdk-parent/frontend/src/utils/custom_field.js @@ -270,9 +270,7 @@ export function buildCustomFields(data, param, template) { if (["richText", "textarea"].indexOf(item.type) > -1) { customField["textValue"] = item.defaultValue; } else { - customField["value"] = item.defaultValue - ? JSON.stringify(item.defaultValue) - : ""; + customField["value"] = JSON.stringify(item.defaultValue); // 处理 jira 的 sprint 字段 if (item.optionLabel) { customField["textValue"] = item.optionLabel; @@ -285,8 +283,7 @@ export function buildCustomFields(data, param, template) { } let fieldValue = item.defaultValue instanceof Array && item.type !== "multipleInput" - ? JSON.stringify(item.defaultValue) - : item.defaultValue || ""; + ? JSON.stringify(item.defaultValue) : item.defaultValue; let requestField = { id: item.id, name: item.name,