From ae00791f4e896f4eb0b166cf11e77d5b063ebc12 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 11 Mar 2021 14:22:04 +0800 Subject: [PATCH] * Finish task #11267. --- module/execution/model.php | 6 +++--- module/project/control.php | 2 +- module/project/view/managemembers.html.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 6a2783adb0..afe46ce8d1 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2276,9 +2276,9 @@ class executionModel extends model extract($data); $executionType = $execution->type; - $accounts = array_unique($accounts); - $limited = array_values($limited); - $oldJoin = $this->dao->select('`account`, `join`')->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq($executionType)->fetchPairs(); + $accounts = array_unique($accounts); + $limited = array_values($limited); + $oldJoin = $this->dao->select('`account`, `join`')->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq($executionType)->fetchPairs(); $this->dao->delete()->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq($executionType)->exec(); $executionMember = array(); diff --git a/module/project/control.php b/module/project/control.php index f4be96a87e..d78af391d4 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -795,7 +795,7 @@ class project extends control if(!empty($_POST)) { - $this->project->manageMembers($projectID); + $this->execution->manageMembers($projectID); $link = $this->createLink('project', 'manageMembers', "projectID=$projectID"); $this->send(array('message' => $this->lang->saveSuccess, 'result' => 'success', 'locate' => $link)); } diff --git a/module/project/view/managemembers.html.php b/module/project/view/managemembers.html.php index 8fd1a51807..968b5caa5b 100644 --- a/module/project/view/managemembers.html.php +++ b/module/project/view/managemembers.html.php @@ -72,7 +72,7 @@