Merge branch 'sprint/184_liumengyi_fixbug' into 'master'

* Fix bug #19308.

See merge request easycorp/zentaopms!1821
This commit is contained in:
孙广明
2022-02-16 07:27:57 +00:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1672,7 +1672,7 @@ class kanban extends control
public function ajaxGetKanbanMenu($kanbanID, $moduleName, $methodName)
{
$kanbanIdList = $this->kanban->getCanViewObjects();
$spacePairs = $this->kanban->getSpacePairs('all');
$spacePairs = $this->kanban->getSpacePairs('showClosed');
$this->view->kanbanList = $this->dao->select('*')->from(TABLE_KANBAN)
->where('deleted')->eq('0')
+2 -2
View File
@@ -1634,7 +1634,7 @@ class kanbanModel extends model
->where('deleted')->eq(0)
->beginIF(in_array($browseType, array('private', 'cooperation', 'public')))->andWhere('type')->eq($browseType)->fi()
->beginIF($browseType == 'involved')->andWhere('owner')->ne($account)->fi()
->beginIF($this->cookie->showClosed == 0)->andWhere('status')->ne('closed')->fi()
->beginIF($this->cookie->showClosed == 0 and $browseType != 'showClosed')->andWhere('status')->ne('closed')->fi()
->beginIF(!$this->app->user->admin)->andWhere('id')->in($spaceIdList)->fi()
->orderBy('id_desc')
->fetchPairs('id');
@@ -2036,7 +2036,7 @@ class kanbanModel extends model
$lane->type = $type;
$lane->execution = $executionID;
$this->dao->insert(TABLE_KANBANLANE)->data($lane)->exec();
$laneID = $this->dao->lastInsertId();
$this->createExecutionColumns($laneID, $type, $executionID);
}