* Adjust commit link object request.
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user