Skip to content
Permalink
Browse files
[FIXED JENKINS-22583] Use unique id to distinguish between multiple i…
…ncluded instances of the same page.
  • Loading branch information
Stefan Wolf committed Apr 12, 2014
1 parent 54c13f1 commit 0e845b678f7922a009709e113161f74bd6a90af1
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 0e845b6

Please sign in to comment.