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

This commit is contained in:
lpsolit%gmail.com 2006-12-28 00:36:30 +00:00
parent 913c0bce8c
commit e1edfc2d93

View 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);