Skip to content
Permalink
Browse files
Only send selected change data back to the server
Use a separate form for the submit, containing only
the hidden field that is used by the serverside code.

Fixes:  JENKINS-21064
  • Loading branch information
bpedersen2 committed Sep 16, 2014
1 parent e86cd84 commit 4ce142704b59319521a91801b9ca7741fe61b05d
Showing with 4 additions and 2 deletions.
  1. +4 −2 ...icsson/hudson/plugins/gerrit/trigger/hudsontrigger/actions/manual/ManualTriggerAction/index.jelly
@@ -80,13 +80,12 @@
</p>
</f:block>
</j:if>
<f:form method="post" action="build" name="theBuild">
<f:form method="" action="" name="">
<f:section title="${%Search Result}">
<f:description>
${%SearchResultDescription}
</f:description>
<f:block>
<input type="hidden" id="selectedIds" name="selectedIds" value=""/>

<j:set var="result" value="${request.session.getAttribute('result')}"/>
<table width="100%" border="1" cellpadding="2" cellspacing="0"
@@ -260,6 +259,9 @@
-->
</f:block>
</f:section>
</f:form>
<f:form method="post" action="build" name="theBuild">
<input type="hidden" id="selectedIds" name="selectedIds" value=""/>
<f:bottomButtonBar>
<f:submit value="${%Trigger Selected}"/>
</f:bottomButtonBar>

0 comments on commit 4ce1427

Please sign in to comment.