rem: if (testcases[i].product_id == productBox.options[productBox.selectedIndex].value) { var optionText = testcases[i].testcase_id + ': ' + testcases[i].summary; 
add: if (testcases[i].product_id != productBox.options[productBox.selectedIndex].value) { continue; }  if (branchBox.selectedIndex >= 0) { if (branchBox.options[branchBox.selectedIndex].value != '' && testcases[i].branch_id != branchBox.options[branchBox.selectedIndex].value) { continue; } }  var optionText = testcases[i].testcase_id + ': ' + testcases[i].summary; 
context: function populateAllTestcases() {  var productBox = document.getElementById('product');  var selectBoxAll = document.getElementById('editform_testcases_for_product');  selectBoxAll.options.length = 0;  for (var i in testcases) {    if (testcases[i].product_id == productBox.options[productBox.selectedIndex].value) {      var optionText = testcases[i].testcase_id + ': ' + testcases[i].summary;    selectBoxAll.options[selectBoxAll.length] = new Option(optionText,                                                               testcases[i].testcase_id);    }  }}  
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/38cc2c83c0a981088028f4bb46905c61fc4ecda5/ManageSubgroups.js/clean/webtools/litmus/js/ManageSubgroups.js