From 8bfc6dec026808d454c9bc57ea582046d20d1977 Mon Sep 17 00:00:00 2001 From: zenggang Date: Mon, 13 Jun 2022 09:46:02 +0000 Subject: [PATCH] * Finish task#56558 --- module/execution/control.php | 6 +++--- module/execution/js/managemembers.js | 2 +- module/execution/view/managemembers.html.php | 8 ++++---- module/project/css/managemembers.css | 3 +++ module/project/view/managemembers.html.php | 8 ++++---- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index c456b62e4a..93f062b932 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2736,8 +2736,8 @@ class execution extends control $this->loadModel('user'); $this->loadModel('dept'); - $execution = $this->execution->getById($executionID); - $users = $this->user->getPairs('noclosed|nodeleted|devfirst', '', $this->config->maxCount); + $execution = $this->execution->getById($executionID); + $users = $this->user->getPairs('noclosed|nodeleted|devfirst'); $roles = $this->user->getUserRoles(array_keys($users)); $deptUsers = empty($dept) ? array() : $this->dept->getDeptUserPairs($dept); @@ -2752,7 +2752,7 @@ class execution extends control foreach($members2Import as $member) $appendUsers[$member->account] = $member->account; foreach($deptUsers as $deptAccount => $userName) $appendUsers[$deptAccount] = $deptAccount; - $users = $this->user->getPairs('noclosed|nodeleted|devfirst', $appendUsers, $this->config->maxCount); + $users = $this->user->getPairs('noclosed|nodeleted|devfirst', $appendUsers); $roles = $this->user->getUserRoles(array_keys($users)); /* Set menu. */ diff --git a/module/execution/js/managemembers.js b/module/execution/js/managemembers.js index 2bf74db218..a8d00e5b29 100644 --- a/module/execution/js/managemembers.js +++ b/module/execution/js/managemembers.js @@ -51,7 +51,7 @@ function addItem(obj) if($accounts.attr('data-pickertype') != 'remote') { - $accounts.chosen(); + $accounts.picker({type: 'user'}); } else { diff --git a/module/execution/view/managemembers.html.php b/module/execution/view/managemembers.html.php index a98bedd4d3..3a153e2096 100644 --- a/module/execution/view/managemembers.html.php +++ b/module/execution/view/managemembers.html.php @@ -68,7 +68,7 @@ - account, "class='form-control chosen' onchange='setRole(this.value, $i)'");?> + account, "class='form-control user-picker' onchange='setRole(this.value, $i)' data-max-list-count=" . $config->maxCount);?> @@ -87,7 +87,7 @@ - + maxCount);?> @@ -105,7 +105,7 @@ - + maxCount);?> @@ -129,7 +129,7 @@ - + - + @@ -76,7 +76,7 @@ account])) continue;?> - + @@ -92,7 +92,7 @@ - + @@ -132,7 +132,7 @@ - +