]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 141609 - "Version unspecified" error when changing product with product groups...
authorgerv%gerv.net <>
Fri, 3 May 2002 13:03:22 +0000 (13:03 +0000)
committergerv%gerv.net <>
Fri, 3 May 2002 13:03:22 +0000 (13:03 +0000)
template/en/default/bug/process/verify-new-product.html.tmpl
template/en/default/global/hidden-fields.html.tmpl

index 50600923d70467faed3823dc635c9314c7ebf686..8569158a74092c01714906621a9b7abc309db794 100644 (file)
@@ -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 %]
index 85df62435b28f82dda7d9c1eaa9e239ce28bb69d..76040bea1b1a178c2d57faf47644d6fefd298bc7 100644 (file)
@@ -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 %]