refactor(系统设置): 兼容环境历史数据的处理 (#17054)
Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
95bbcf8c91
commit
d4845c9801
|
@ -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