From effbef93e2989f9d9609dbd89afd67c5c04965df Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 21 Feb 2007 00:56:25 +0000 Subject: Bug 370913: query.cgi associates wrong components with products if at least one product has no component - Patch by Teemu Mannermaa r/a=LpSolit --- template/en/default/search/form.html.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'template/en/default/search/form.html.tmpl') diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 3326e7ee0..30e2f2650 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 %]] = [ -- cgit v1.2.3-24-g4f1b