From ec1f0876aaa56b42ac81e64fa7d6ec6c6a3f1920 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 21 Jan 2022 08:38:38 +0800 Subject: [PATCH] * Fix bug for create kanban. --- module/kanban/control.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/kanban/control.php b/module/kanban/control.php index 6981819632..17bd52d4e3 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -167,7 +167,11 @@ class kanban extends control unset($this->lang->kanbanspace->featureBar['involved']); - $this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted'); + $space = $this->kanban->getSpaceById($spaceID); + $spaceUsers = $space->owner . $space->team . $space->whitelist; + $users = $this->loadModel('user')->getPairs('noclosed|nodeleted', '', 0, $spaceUsers); + + $this->view->users = $users; $this->view->spaceID = $spaceID; $this->view->spacePairs = array(0 => '') + $this->kanban->getSpacePairs($type); $this->view->type = $type;