Skip to content

Commit

Permalink
fix: paramSpec and abstractParam conversion resulting in available pa…
Browse files Browse the repository at this point in the history
…rams being populated
  • Loading branch information
tlawrie committed Aug 8, 2024
1 parent e090108 commit 2bbe3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/boomerang/util/ParameterUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public static List<ParamSpec> abstractParamsToParamSpecsV2(List<AbstractParam> a
}
param.setName(ap.getKey());
//If secret, only replace the stored value when not empty (as its removed on display to the UI)
if (ap.getType().equals("secret") && !Objects.isNull(ap.getDefaultValue()) && !ap.getDefaultValue().isEmpty()) {
if (ap.getType().equals("password") && !Objects.isNull(ap.getDefaultValue()) && !ap.getDefaultValue().isEmpty()) {
param.setDefaultValue(ap.getDefaultValue());
}
param.setDescription(ap.getDescription());
Expand Down

0 comments on commit 2bbe3af

Please sign in to comment.