mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
fix(用例管理): 修复导入文件校验提示错误
--bug=1043058 --user=王旭 【测试用例】导入用例文件中“多选下拉框”自定义字段校验显示错误 https://www.tapd.cn/55049933/s/1535875
This commit is contained in:
parent
837a74d53d
commit
34e97f09b9
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user