diff --git a/module/story/js/batchedit.js b/module/story/js/batchedit.js index 65980335e0..864b39fb39 100644 --- a/module/story/js/batchedit.js +++ b/module/story/js/batchedit.js @@ -30,12 +30,12 @@ function loadBranches(product, branch, storyID) if(typeof(branch) == 'undefined') branch = 0; if(!branch) branch = 0; - moduleLink = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + product + '&viewtype=story&branch=' + branch + '&rootModuleID=0&returnType=html&fieldID=' + storyID + '&needManage=true'); - $('#modules' + storyID).parent('td > .input-group').load(moduleLink, function(){$('#modules' + storyID).chosen(defaultChosenOptions);}); + moduleLink = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + product + '&viewtype=story&branch=' + branch + '&rootModuleID=0&returnType=html&fieldID=' + storyID); + $('#modules' + storyID).parent('td').load(moduleLink, function(){$('#modules' + storyID).chosen(defaultChosenOptions);}); planID = $('#plans' + storyID).val(); - planLink = createLink('product', 'ajaxGetPlans', 'productID=' + product + '&branch=' + branch + '&planID=' + planID + '&fieldID=' + storyID + '&needCreate=true'); - $('#plans' + storyID).parent('td > .input-group').load(planLink, function(data){$('#plans' + storyID).chosen(defaultChosenOptions);}); + planLink = createLink('product', 'ajaxGetPlans', 'productID=' + product + '&branch=' + branch + '&planID=' + planID + '&fieldID=' + storyID); + $('#plans' + storyID).parent('td').load(planLink, function(){$('#plans' + storyID).chosen(defaultChosenOptions);}); } $(document).ready(removeDitto());//Remove 'ditto' in first row. diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 567590ca8f..711c626b31 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -88,10 +88,10 @@ foreach(explode(',', $showFields) as $field)