* Adjust commit link object request.

This commit is contained in:
caoyanyi
2023-11-03 14:57:56 +08:00
parent a0d669d689
commit 4013cf9257
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -13,11 +13,11 @@ $(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer
if(!checkedList.length) return;
const tabType = $(this).data('type');
const postData = [];
postData[`${tabType}[]`] = checkedList;
const postData = new FormData();
checkedList.forEach((id) => postData.append(`${tabType}[]`, id));
$.ajaxSubmit({
url: $(this).data('url'),
data: postData
});
});
});
+2 -2
View File
@@ -13,8 +13,8 @@ $(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer
if(!checkedList.length) return;
const tabType = $(this).data('type');
const postData = [];
postData[`${tabType}[]`] = checkedList;
const postData = new FormData();
checkedList.forEach((id) => postData.append(`${tabType}[]`, id));
$.ajaxSubmit({
url: $(this).data('url'),
+3 -3
View File
@@ -13,11 +13,11 @@ $(document).off('click','.dtable-footer .batch-btn').on('click', '.dtable-footer
if(!checkedList.length) return;
const tabType = $(this).data('type');
const postData = [];
postData[`${tabType}[]`] = checkedList;
const postData = new FormData();
checkedList.forEach((id) => postData.append(`${tabType}[]`, id));
$.ajaxSubmit({
url: $(this).data('url'),
data: postData
});
});
});
+1 -1
View File
@@ -2779,7 +2779,7 @@ class repoModel extends model
}
$stories = empty($storyIDs) ? array() : $this->loadModel('story')->getByList($storyIDs);
$bugs = empty($bugIDs) ? array() : $this->loadModel('bug')->getByList($bugIDs);
$tasks = empty($taskIDs) ? array() : $this->loadModel('task')->getByIdList($taskIDs);
$tasks = empty($taskIDs) ? array() : $this->loadModel('task')->getByList($taskIDs);
$titleList = array();
foreach($relationList as $key => $relation)