From 3cd13acb1c9f6c34ffd025151d04ec3a58f3536c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 28 Dec 2006 08:36:30 +0000 Subject: [PATCH] =?utf8?q?Bug=20365107:=20When=20classifications=20are=20i?= =?utf8?q?n=20use,=20query.cgi=20doesn't=20fill=20the=20component,=20versi?= =?utf8?q?on=20and=20target=20milestone=20select=20menus=20correctly=20-?= =?utf8?q?=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dbkor=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- template/en/default/search/form.html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 4942bafe0b..3326e7ee0f 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -87,7 +87,9 @@ function doOnSelectProduct(selectmode) { var milestone = (typeof(f.target_milestone) == "undefined" ? null : f.target_milestone); if (selectmode == 0) { - if (useclassification) { + // If there is no classification selected, give us a chance to fill + // the select fields with values from the possibly selected product. + if (useclassification && f.classification.selectedIndex > -1) { selectClassification(f.classification, f.product, f.component, f.version, milestone); } else { selectProduct(f.product, f.component, f.version, milestone); -- 2.47.2