diff options
author | lpsolit%gmail.com <> | 2006-12-28 09:36:30 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-28 09:36:30 +0100 |
commit | 3cd13acb1c9f6c34ffd025151d04ec3a58f3536c (patch) | |
tree | be6075e074a95ca4387e946059d61add9991a756 | |
parent | 2c98905ff079153fb7491474111158261e1301f9 (diff) | |
download | bugzilla-3cd13acb1c9f6c34ffd025151d04ec3a58f3536c.tar.gz bugzilla-3cd13acb1c9f6c34ffd025151d04ec3a58f3536c.tar.xz |
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 <LpSolit@gmail.com> r=bkor a=justdave
-rw-r--r-- | template/en/default/search/form.html.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
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); |