Skip to content

Commit dd177a5

Browse files
authored
Merge pull request #7 from tcplugins/issue_4-fix_tc10_and_tc2017
Fix parameter names to remove the "invoke." prefix
2 parents 37e13bb + 368357b commit dd177a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/buildinvoker/CustomParameter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ public boolean getIsArtifact(){
8888
public String getAsHtml(){
8989
StringBuffer s = new StringBuffer();
9090
if (this.type.equals("hidden")) {
91-
s.append("<input type=\"hidden\" name=\"invoke." + this.scope + "." + this.name + "\" value=\"" + this.value + "\"/>");
91+
s.append("<input type=\"hidden\" name=\"" + this.scope + "." + this.name + "\" value=\"" + this.value + "\"/>");
9292
s.append("<tr><td class=\"hiddenParam\">" + this.scope + "." + this.name + "</td><td class=\"hiddenParam\">" + this.value + "</td></tr>");
9393
} else if (this.type.equals("option")){
9494
if (this.description != null){
9595
s.append("<tr><td>" + this.description + "</td>");
9696
} else {
9797
s.append("<tr><td>" + this.scope + "." + this.name + "</td>");
9898
}
99-
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"invoke." + this.scope + "." + this.name + "\"");
99+
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"" + this.scope + "." + this.name + "\"");
100100
if (this.required != null && this.required)
101101
s.append(" required ");
102102
s.append(">");
@@ -121,7 +121,7 @@ public String getArtifactStartAsHtml(){
121121
} else {
122122
s.append("<tr><td>" + this.scope + "." + this.name + "</td>");
123123
}
124-
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"invoke." + this.scope + "." + this.name + "\"");
124+
s.append("<td><select id=\"" + this.uniqueKey + this.name + "\" name=\"" + this.scope + "." + this.name + "\"");
125125
if (this.required != null && this.required)
126126
s.append(" required ");
127127
s.append(">");

0 commit comments

Comments
 (0)