From cd6592eaaf724eb3eec4909b2bc487ae35b3ac67 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 23 Aug 2021 14:23:44 +0800 Subject: [PATCH] * Synchronize the roles of team members when copying a team. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 9b70acbf43..723382a482 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -379,7 +379,7 @@ class executionModel extends model /* Set team of execution. */ $members = isset($_POST['teamMembers']) ? $_POST['teamMembers'] : array(); - $roles = $this->loadModel('user')->getUserRoles(array_keys($members)); + $roles = $this->loadModel('user')->getUserRoles(array_values($members)); foreach($members as $account) { if(empty($account)) continue;