提交 01c78713 编写于 作者: S sogabe

Fixed #36734.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36737 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5d222084
......@@ -253,10 +253,10 @@ public class SCMTrigger extends Trigger<SCMedItem> {
return true;
}
public FormValidation doCheckPoll_scm_threads(@QueryParameter String poll_scm_threads) {
if (poll_scm_threads != null && "".equals(poll_scm_threads.trim()))
public FormValidation doCheckPoll_scm_threads(@QueryParameter String value) {
if (value != null && "".equals(value.trim()))
return FormValidation.ok();
return FormValidation.validateNonNegativeInteger(poll_scm_threads);
return FormValidation.validateNonNegativeInteger(value);
}
}
......
......@@ -31,9 +31,8 @@ THE SOFTWARE.
<f:section title="${%SCM Polling}">
<f:entry title="${%Max # of concurrent polling}"
help="/help/triggers/SCMTrigger/concurrency.html">
<f:textbox
field="poll_scm_threads"
value="${descriptor.pollingThreadCount==0 ? '' : descriptor.pollingThreadCount}"/>
<f:textbox name="poll_scm_threads"
value="${descriptor.pollingThreadCount==0 ? '' : descriptor.pollingThreadCount}"/>
</f:entry>
</f:section>
</j:if>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册