refactor(系统设置): 兼容环境历史数据的处理 (#17053)
Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
67b5f5422b
commit
b221913e9f
|
@ -55,7 +55,7 @@ public class ScenarioVariable {
|
|||
}
|
||||
|
||||
public boolean isConstantValid() {
|
||||
if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name)) {
|
||||
if (StringUtils.isEmpty(this.type) || (StringUtils.equals("text", this.type) && StringUtils.isNotEmpty(name)) || (StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name()) && StringUtils.isNotEmpty(name))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue