* Fix bug#48044.

This commit is contained in:
xieqiyu
2024-04-22 14:56:57 +08:00
parent 0530830ad6
commit 1ca4b1de46
+8
View File
@@ -37,6 +37,14 @@ $(document).off('click', '.batchUnlinkStory').on('click', '.batchUnlinkStory', f
const checkedList = dtable.$.getChecks();
if(!checkedList.length) return;
/* 处理选中的子需求的ID,截取-后的子需求ID。*/
/* Process selected child story ID. */
for(i in checkedList)
{
const storyID = checkedList[i];
if(storyID.includes('-')) checkedList[i] = storyID.slice(storyID.indexOf('-') + 1);
}
let batchUnlinkStoryURL = $.createLink('projectstory', 'batchUnlinkStory', 'projectID=' + projectID + '&stories=' + encodeURIComponent(checkedList.join(',')));
$.get(batchUnlinkStoryURL, function(data)
{