Skip to content

Commit

Permalink
Fix the error in the test wrapper discovered by the test
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Aug 13, 2015
1 parent 660f00d commit 0a5fd20
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ protected XmlFile getConfigFile() {

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
this.enablePermissions = json.getBoolean("enablePermissions");
this.hideInjectedVars = json.getBoolean("hideInjectedVars");
EnvInjectPlugin.getInstance().onConfigChange(this);
save();
return true;
final boolean newEnablePermissions = json.getBoolean("enablePermissions");
final boolean newHideInjectedVars = json.getBoolean("hideInjectedVars");
return configure(newHideInjectedVars, newEnablePermissions);
}

/**
Expand All @@ -107,6 +105,7 @@ public boolean configure(StaplerRequest req, JSONObject json) throws FormExcepti
}
instance.hideInjectedVars = hideInjectedVars;
instance.enablePermissions = enablePermissions;
EnvInjectPlugin.getInstance().onConfigChange(instance);
instance.save();
return true;
}
Expand Down

0 comments on commit 0a5fd20

Please sign in to comment.