fix(用例管理): 修复导入文件校验提示错误

--bug=1043058 --user=王旭 【测试用例】导入用例文件中“多选下拉框”自定义字段校验显示错误 https://www.tapd.cn/55049933/s/1535875
This commit is contained in:
WangXu10 2024-06-25 10:46:13 +08:00 committed by 刘瑞斌
parent 837a74d53d
commit 34e97f09b9

View File

@ -49,7 +49,7 @@ public abstract class AbstractCustomFieldValidator {
protected void validateArrayRequired(TemplateCustomFieldDTO customField, String value) throws CustomFieldValidateException {
if (customField.getRequired() && (StringUtils.isBlank(value) || StringUtils.equals(value, "[]"))) {
CustomFieldValidateException.throwException(String.format(Translator.get("custom_field_required_tip"), customField.getFieldId()));
CustomFieldValidateException.throwException(String.format(Translator.get("custom_field_required_tip"), customField.getFieldName()));
}
}