diff --git a/backend/src/main/java/io/metersphere/service/IssueTemplateService.java b/backend/src/main/java/io/metersphere/service/IssueTemplateService.java index 88bc92bb5f..77faebdead 100644 --- a/backend/src/main/java/io/metersphere/service/IssueTemplateService.java +++ b/backend/src/main/java/io/metersphere/service/IssueTemplateService.java @@ -393,7 +393,11 @@ public class IssueTemplateService extends TemplateBaseService { tarCustomField.setCreateUser(SessionUtils.getUserId()); if (StringUtils.equals("1", request.getCopyModel())) { // 覆盖模式 - tarCustomField.setOptions(sourceCustomField.getOptions()); + if (StringUtils.equals(sourceCustomField.getType(), tarCustomField.getType())) { + tarCustomField.setOptions(sourceCustomField.getOptions()); + } else { + tarCustomField.setOptions("[]"); + } customFieldMapper.updateByPrimaryKeyWithBLOBs(tarCustomField); } else { //追加模式