Commit 97539305 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 141609 - "Version unspecified" error when changing product with product…

Bug 141609 - "Version unspecified" error when changing product with product groups enabled. Patch by myk; 2xr=gerv.
parent c9a9c4f7
......@@ -36,7 +36,8 @@
<form action="process_bug.cgi" method="post">
[% PROCESS "global/hidden-fields.html.tmpl" exclude="^version|component|target_milestone$" %]
[% PROCESS "global/hidden-fields.html.tmpl"
exclude=(verify_fields ? "^version|component|target_milestone$" : "") %]
[%# Verify the version, component, and target milestone fields. %]
[% IF verify_fields %]
......
......@@ -27,6 +27,6 @@
[%# Generate hidden form fields for non-excluded fields. %]
[% FOREACH field = form %]
[% NEXT IF field.key.search(exclude) %]
[% NEXT IF exclude && field.key.search(exclude) %]
<input type="hidden" name="[% field.key %]" value="[% field.value FILTER html %]">
[% END %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment