configuration dialog now works properly

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8329 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-04-06 20:40:41 +00:00
1 parent 23b0aed646
commit dfb2a9ae3b
2 files changed
+6 -2

No files matched your search

@@ -41,7 +41,6 @@ public class AggregatedTestResultPublisher extends Publisher {
*/
public final String jobs;
@DataBoundConstructor
public AggregatedTestResultPublisher(String jobs) {
this.jobs = Util.fixEmptyAndTrim(jobs);
}
@@ -220,7 +219,11 @@ public class AggregatedTestResultPublisher extends Publisher {
}
public AggregatedTestResultPublisher newInstance(StaplerRequest req, JSONObject formData) throws FormException {
return req.bindJSON(AggregatedTestResultPublisher.class,formData);
JSONObject s = formData.getJSONObject("specify");
if(s.isNullObject())
return new AggregatedTestResultPublisher(null);
else
return new AggregatedTestResultPublisher(s.getString("jobs"));
}
public static final DescriptorImpl INSTANCE = new DescriptorImpl();