]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365107: When classifications are in use, query.cgi doesn't fill the component...
authorlpsolit%gmail.com <>
Thu, 28 Dec 2006 08:36:30 +0000 (08:36 +0000)
committerlpsolit%gmail.com <>
Thu, 28 Dec 2006 08:36:30 +0000 (08:36 +0000)
template/en/default/search/form.html.tmpl

index 4942bafe0b6690a69e53378d6b8eb7c854601060..3326e7ee0ff353bcf0e314128ade1124c74019cc 100644 (file)
@@ -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);