提交 dfb2a9ae 编写于 作者: K kohsuke

configuration dialog now works properly


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8329 71c3de6d-444a-0410-be80-ed276b4c234a
上级 23b0aed6
......@@ -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();
......
......@@ -3,6 +3,7 @@
<table style="width:100%">
<f:optionalBlock name="aggragatedTestResult.specify" negative="true"
title="${%Automatically aggregate all downstream tests}"
checked="${instance.jobs==null}"
help="/help/tasks/aggregate-test/auto-aggregate.html">
<f:entry title="Jobs to aggregate"
help="/help/tasks/aggregate-test/manual-list.html">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册