From: lpsolit%gmail.com <> Date: Thu, 28 Dec 2006 08:36:30 +0000 (+0000) Subject: Bug 365107: When classifications are in use, query.cgi doesn't fill the component... X-Git-Tag: bugzilla-2.23.4~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd13acb1c9f6c34ffd025151d04ec3a58f3536c;p=thirdparty%2Fbugzilla.git 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 --- 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);