Skip to content
Permalink
Browse files
[FIXED JENKINS-22583] Use unique id to distinguish between multiple i…
…ncluded instances of the same page.

(cherry picked from commit 0e845b6)
  • Loading branch information
Stefan Wolf authored and olivergondza committed May 5, 2014
1 parent f80eb00 commit 7f04fa31e5bb589bb527684308308327405e3817
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/main/resources/lib/form/hetero-radio.jelly
@@ -40,8 +40,9 @@ THE SOFTWARE.
<table style="width:100%">
<j:set var="currentInstance" value="${instance[field]}" />
<j:set var="currentDescriptor" value="${currentInstance.descriptor}" />
<j:set var="uniqueId" value="${h.generateId()}" />
<j:forEach var="d" items="${descriptors}" varStatus="loop">
<f:radioBlock name="${field}" help="${d.helpFile}" value="${loop.index}"
<f:radioBlock name="${uniqueId}.${field}" help="${d.helpFile}" value="${loop.index}"
title="${d.displayName}" checked="${currentDescriptor==d}">
<j:set var="descriptor" value="${d}" />
<j:set var="instance" value="${currentDescriptor==d?currentInstance:null}" />

0 comments on commit 7f04fa3

Please sign in to comment.