diff --git a/lib/zin/wg/productcharterbox/js/v1.js b/lib/zin/wg/productcharterbox/js/v1.js index 6aecf4c1ec..d92c82881d 100644 --- a/lib/zin/wg/productcharterbox/js/v1.js +++ b/lib/zin/wg/productcharterbox/js/v1.js @@ -195,26 +195,6 @@ window.loadBranches = function(product) if(typeof projectID == 'undefined') projectID = 0; $.getJSON($.createLink('branch', 'ajaxGetBranches', "productID=" + currentProduct + "&oldBranch=¶m=active&projectID=" + projectID + "&withMainBranch=true&isTwins=no&fieldID=0&multiple=&charterID=" + charterID), function(data) { - if(data.length > 0) - { - let chosenBranches = []; - $('[name^=product][value="' + currentProduct + '"]').closest('.productBox').find('[name^="branch"]').each(function() - { - if(!isNaN($(this).val()) && $(this).val() !== '') chosenBranches.push($(this).val().toString()); - }); - } - else - { - if(objectType == 'roadmap') - { - loadRoadmap(product); - } - else - { - loadPlan(product); - } - updateItems(); - } }); }