From: lpsolit%gmail.com <> Date: Wed, 21 Feb 2007 00:56:25 +0000 (+0000) Subject: Bug 370913: query.cgi associates wrong components with products if at least one produ... X-Git-Tag: bugzilla-3.0rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=effbef93e2989f9d9609dbd89afd67c5c04965df;p=thirdparty%2Fbugzilla.git Bug 370913: query.cgi associates wrong components with products if at least one product has no component - Patch by Teemu Mannermaa r/a=LpSolit --- diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 3326e7ee0f..30e2f26506 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -58,7 +58,8 @@ var tms = new Array(); [% n = 0 %] [% FOREACH p = product %] - [% IF Param('useclassification') && p.components.size %] + [% NEXT IF NOT p.components.size %] + [% IF Param('useclassification') %] prods['[% p.name FILTER js %]'] = [% n %] [% END %] cpts[[% n %]] = [