diff options
author | lpsolit%gmail.com <> | 2007-02-21 00:56:25 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-02-21 00:56:25 +0000 |
commit | effbef93e2989f9d9609dbd89afd67c5c04965df (patch) | |
tree | 596930852b96a29afcca20f1c12d0d58611a4ae7 /template | |
parent | 1a0c2b4fa851c4f70d565d2d4797167a17839f43 (diff) | |
download | bugs-effbef93e2989f9d9609dbd89afd67c5c04965df.tar bugs-effbef93e2989f9d9609dbd89afd67c5c04965df.tar.gz bugs-effbef93e2989f9d9609dbd89afd67c5c04965df.tar.bz2 bugs-effbef93e2989f9d9609dbd89afd67c5c04965df.tar.xz bugs-effbef93e2989f9d9609dbd89afd67c5c04965df.zip |
Bug 370913: query.cgi associates wrong components with products if at least one product has no component - Patch by Teemu Mannermaa <wicked+bz@etlicon.fi> r/a=LpSolit
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
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 %]] = [ |