From 35537ff9dbdc2ae40c142d13aa6f20d4ce16c1c9 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 19 Jul 2022 16:33:03 +0800 Subject: [PATCH] * Fix bug #25453. --- module/kanban/control.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/kanban/control.php b/module/kanban/control.php index 98511333d2..f05f52ccfc 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -1852,11 +1852,10 @@ class kanban extends control public function ajaxGetContactUsers($field, $contactListID) { $this->loadModel('user'); - $list = $contactListID ? $this->user->getContactListByID($contactListID) : ''; - + $list = $contactListID ? $this->user->getContactListByID($contactListID) : ''; $users = $this->user->getPairs('nodeleted|noclosed', '', $this->config->maxCount); - if(!$contactListID) return print(html::select($field . '[]', $users, '', "class='form-control picker-select' multiple")); + if(!$contactListID or !isset($list->userList)) return print(html::select($field . '[]', $users, '', "class='form-control picker-select' multiple")); return print(html::select($field . '[]', $users, $list->userList, "class='form-control picker-select' multiple")); }