Merge branch 'sprint/179_liumengyi_fixbug' into 'master'
* Fix bug #17939. See merge request easycorp/zentaopms!1146
This commit is contained in:
@@ -161,7 +161,7 @@ class kanban extends control
|
||||
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted');
|
||||
$this->view->spaceID = $spaceID;
|
||||
$this->view->spacePairs = array(0 => '') + $this->kanban->getSpacePairs();
|
||||
$this->view->spacePairs = array(0 => '') + $this->kanban->getSpacePairs('noclosed');
|
||||
|
||||
$this->display();
|
||||
}
|
||||
@@ -189,7 +189,7 @@ class kanban extends control
|
||||
}
|
||||
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noclosed');
|
||||
$this->view->spacePairs = array(0 => '') + $this->kanban->getSpacePairs();
|
||||
$this->view->spacePairs = array(0 => '') + $this->kanban->getSpacePairs('noclosed');
|
||||
$this->view->kanban = $this->kanban->getByID($kanbanID);
|
||||
|
||||
$this->display();
|
||||
|
||||
@@ -859,6 +859,7 @@ class kanbanModel extends model
|
||||
->beginIF($browseType == 'my')->andWhere('owner')->eq($account)->fi()
|
||||
->beginIF($browseType == 'other')->andWhere('owner')->ne($account)->fi()
|
||||
->beginIF($browseType == 'closed')->andWhere('status')->eq('closed')->fi()
|
||||
->beginIF($browseType == 'noclosed')->andWhere('status')->ne('closed')->fi()
|
||||
->beginIF(!$this->app->user->admin)->andWhere('id')->in($spaceIdList)->fi()
|
||||
->orderBy('id_desc')
|
||||
->fetchPairs('id');
|
||||
|
||||
Reference in New Issue
Block a user