Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-24 05:08:11 -0500
committerWinston Prakash2011-12-01 20:47:23 -0500
commit7b452df2fce4d66833c74f19e7f8e77ad040eaea (patch)
treef1196e9df0b6d6d540e3a39e57f05430d95f987a /hudson-core/src/main/resources/hudson
parent42178ae2d1687d0ca6074711a64464757b005141 (diff)
downloadorg.eclipse.hudson.core-7b452df2fce4d66833c74f19e7f8e77ad040eaea.tar.gz
org.eclipse.hudson.core-7b452df2fce4d66833c74f19e7f8e77ad040eaea.tar.xz
org.eclipse.hudson.core-7b452df2fce4d66833c74f19e7f8e77ad040eaea.zip
Implement unit test for cascading utils. Move cascading test cases from Functions. Improve cascading projects filtering. Exclude same project from cascading list on server-side
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
Diffstat (limited to 'hudson-core/src/main/resources/hudson')
-rw-r--r--hudson-core/src/main/resources/hudson/model/Job/configure.jelly6
1 files changed, 2 insertions, 4 deletions
diff --git a/hudson-core/src/main/resources/hudson/model/Job/configure.jelly b/hudson-core/src/main/resources/hudson/model/Job/configure.jelly
index 8127b0e5..8cc1411c 100644
--- a/hudson-core/src/main/resources/hudson/model/Job/configure.jelly
+++ b/hudson-core/src/main/resources/hudson/model/Job/configure.jelly
@@ -34,14 +34,12 @@
</f:entry>
</j:if>
<j:set var="cascadingCandidates" value="${h.getAllItems(it.class, it)}"/>
- <j:if test="${cascadingCandidates.size() gt 1}">
+ <j:if test="${cascadingCandidates.size() gt 0}">
<f:entry title="${%cascadingProjectName}">
<select class="setting-input" name="cascadingProjectName">
<f:option/>
<j:forEach var="job" items="${cascadingCandidates}">
- <j:if test="${job.name != it.name}">
- <f:option selected="${job.name==it.cascadingProjectName}" value="${job.name}">${job.name}</f:option>
- </j:if>
+ <f:option selected="${job.name==it.cascadingProjectName}" value="${job.name}">${job.name}</f:option>
</j:forEach>
</select>
</f:entry>

Back to the top