Skip to content

Commit

Permalink
Merge pull request #7 from tcplugins/issue_4-fix_tc10_and_tc2017
Browse files Browse the repository at this point in the history
Fix parameter names to remove the "invoke." prefix
  • Loading branch information
netwolfuk authored Aug 10, 2017
2 parents 37e13bb + 368357b commit dd177a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/buildinvoker/CustomParameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ public boolean getIsArtifact(){
public String getAsHtml(){
StringBuffer s = new StringBuffer();
if (this.type.equals("hidden")) {
s.append("<input type=\"hidden\" name=\"invoke." + this.scope + "." + this.name + "\" value=\"" + this.value + "\"/>");
s.append("<input type=\"hidden\" name=\"" + this.scope + "." + this.name + "\" value=\"" + this.value + "\"/>");
s.append("<tr><td class=\"hiddenParam\">" + this.scope + "." + this.name + "</td><td class=\"hiddenParam\">" + this.value + "</td></tr>");
} else if (this.type.equals("option")){
if (this.description != null){
s.append("<tr><td>" + this.description + "</td>");
} else {
s.append("<tr><td>" + this.scope + "." + this.name + "</td>");
}
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"invoke." + this.scope + "." + this.name + "\"");
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"" + this.scope + "." + this.name + "\"");
if (this.required != null && this.required)
s.append(" required ");
s.append(">");
Expand All @@ -121,7 +121,7 @@ public String getArtifactStartAsHtml(){
} else {
s.append("<tr><td>" + this.scope + "." + this.name + "</td>");
}
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"invoke." + this.scope + "." + this.name + "\"");
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"" + this.scope + "." + this.name + "\"");
if (this.required != null && this.required)
s.append(" required ");
s.append(">");
Expand Down

0 comments on commit dd177a5

Please sign in to comment.