diff --git a/module/bug/js/common.js b/module/bug/js/common.js index ca984a9482..33aa25280a 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -530,7 +530,7 @@ function loadProductBranches(productID, param) $('#branch').next('.picker').remove(); var param = "productID=" + productID + "&oldBranch=0¶m=" + param; - param += (typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) ? "&projectID=" + objectID : ""; + if(typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) param += "&projectID=" + objectID; $.get(createLink('branch', 'ajaxGetBranches', param), function(data) { if(data) diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index 42988041d1..26d50e0501 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -51,7 +51,7 @@ function loadProductBranches(productID) if(page == 'create') param = 'active'; $('#branch').remove(); var param = "productID=" + productID + "&oldBranch=0¶m=" + param; - param += (typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) ? "&projectID=" + objectID : ""; + if(typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) param += "&projectID=" + objectID; $.get(createLink('branch', 'ajaxGetBranches', param), function(data) { if(data)