summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-05-03 15:03:22 +0200
committergerv%gerv.net <>2002-05-03 15:03:22 +0200
commit975393052e91c1c22b301c708c156f3784601358 (patch)
tree6ae7667f6e4b93ef50f7962ddd0f200c8fc6f519 /template/en/default
parentc9a9c4f7bc7b2156f2f5e74f9ff2f38ac22bb307 (diff)
downloadbugzilla-975393052e91c1c22b301c708c156f3784601358.tar.gz
bugzilla-975393052e91c1c22b301c708c156f3784601358.tar.xz
Bug 141609 - "Version unspecified" error when changing product with product groups enabled. Patch by myk; 2xr=gerv.
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/process/verify-new-product.html.tmpl3
-rw-r--r--template/en/default/global/hidden-fields.html.tmpl2
2 files changed, 3 insertions, 2 deletions
diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl
index 50600923d..8569158a7 100644
--- a/template/en/default/bug/process/verify-new-product.html.tmpl
+++ b/template/en/default/bug/process/verify-new-product.html.tmpl
@@ -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 %]
diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl
index 85df62435..76040bea1 100644
--- a/template/en/default/global/hidden-fields.html.tmpl
+++ b/template/en/default/global/hidden-fields.html.tmpl
@@ -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 %]