From 3cd13acb1c9f6c34ffd025151d04ec3a58f3536c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 28 Dec 2006 08:36:30 +0000 Subject: Bug 365107: When classifications are in use, query.cgi doesn't fill the component, version and target milestone select menus correctly - Patch by Frédéric Buclin r=bkor a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/search/form.html.tmpl | 4 +++- 1 file changed, 3 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 4942bafe0..3326e7ee0 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); -- cgit v1.2.3-24-g4f1b