From ea8a8ffb99049c0ddf01a786f460c87af83deb0b Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 17 Aug 2023 16:17:41 +0800 Subject: [PATCH] - Remove bug::ajaxLoadExecutionTeamMembers. --- module/bug/control.php | 16 ---------------- module/bug/js/create.js | 20 -------------------- 2 files changed, 36 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 8db62137a1..131f90d852 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1254,22 +1254,6 @@ class bug extends control return print(json_encode($items)); } - /** - * ajax方式获取产品关联执行的团队成员列表。 - * AJAX: get team members of the latest executions of a product as assignedTo list. - * - * @param int $productID - * @param string $selectedUser - * @access public - * @return string - */ - public function ajaxLoadExecutionTeamMembers(int $productID, string $selectedUser = '') - { - $productMembers = $this->bug->getProductMemberPairs($productID); - - return print(html::select('assignedTo', $productMembers, $selectedUser, 'class="form-control"')); - } - /** * Ajax 方式加载所有的用户。 * AJAX: get all users as assignedTo list. diff --git a/module/bug/js/create.js b/module/bug/js/create.js index 6590029f6e..f1ab732b9d 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -1,23 +1,3 @@ -/** - * Load team members of the latest execution of a product as assignedTo list. - * - * @param int $productID - * @param bool $changeProduct - * @access public - * @return void - */ -function loadExecutionTeamMembers(productID, changeProduct) -{ - var link = createLink('bug', 'ajaxLoadExecutionTeamMembers', 'productID=' + productID + '&selectedUser=' + $('#assignedTo').val()); - $.post(link, function(data) - { - $('#assignedTo').replaceWith(data); - $('#assignedTo_chosen').remove(); - $('#assignedTo').chosen(); - if(typeof(changeProduct) != undefined && changeProduct) setAssignedTo(); - }) -} - /** * Load assignedTo and stories of module. *