diff --git a/webtools/litmus/js/SelectBoxes.js b/webtools/litmus/js/SelectBoxes.js index 3d569a97ee28..906574d4216b 100755 --- a/webtools/litmus/js/SelectBoxes.js +++ b/webtools/litmus/js/SelectBoxes.js @@ -37,13 +37,9 @@ function load_testgroups(selects) { addNullEntry(groupbox); // find the currently selected product that goes with this select var productbox = document.getElementById("product"+groupbox.name.substr(9)); - if (productbox.selectedIndex >= 0) { - var productid = productbox.options[productbox.selectedIndex].value; - var product = getProductById(productid); - if (!product) { - return; - } - } else { + var productid = productbox.options[productbox.selectedIndex].value; + var product = getProductById(productid); + if (!product) { return; } // now get the list of testgroups that goes with that product: