From 523daa0c8832d767792ff4e172ca65a59fcd8d69 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Thu, 28 Dec 2006 00:36:30 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20365107:=20When=20classifications=20are=20?= =?UTF-8?q?in=20use,=20query.cgi=20doesn't=20fill=20the=20component,=20ver?= =?UTF-8?q?sion=20and=20target=20milestone=20select=20menus=20correctly=20?= =?UTF-8?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=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@217499 18797224-902f-48f8-a5cc-f745e15eee43 --- .../bugzilla/template/en/default/search/form.html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl index 4942bafe0b6..3326e7ee0ff 100644 --- a/mozilla/webtools/bugzilla/template/en/default/search/form.html.tmpl +++ b/mozilla/webtools/bugzilla/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);