From: gerv%gerv.net <> Date: Fri, 3 May 2002 13:03:22 +0000 (+0000) Subject: Bug 141609 - "Version unspecified" error when changing product with product groups... X-Git-Tag: bugzilla-2.16rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975393052e91c1c22b301c708c156f3784601358;p=thirdparty%2Fbugzilla.git Bug 141609 - "Version unspecified" error when changing product with product groups enabled. Patch by myk; 2xr=gerv. --- 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 50600923d7..8569158a74 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 @@
-[% 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 85df62435b..76040bea1b 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) %] [% END %]