Skip to content

Commit

Permalink
fix(oxTrust): oops error on clicking Other custom Scripts #2081
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Jul 14, 2021
1 parent 2aecb32 commit 4a95f92
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public class ManageOtherCustomScriptAction

private boolean initialized;

private boolean showActive;

private List<String> allAcrs = new ArrayList<>();

@Inject
Expand Down Expand Up @@ -119,6 +121,18 @@ public String modify() {
return OxTrustConstants.RESULT_SUCCESS;
}

public boolean isShowActive() {
return showActive;
}

public void setShowActive(boolean showActive) {
this.showActive = showActive;
}

public boolean isShowCurrentScript(CustomScript script) {
return (showActive)? script.isEnabled(): true;
}

public String save() {
try {
List<CustomScript> oldCustomScripts = customScriptService.findCustomScripts(Arrays.asList(getScriptType()),
Expand Down

0 comments on commit 4a95f92

Please sign in to comment.