* Fix bug for kanban execution.

This commit is contained in:
liumengyi
2022-01-13 11:58:28 +08:00
parent e82f0f5655
commit 0aba204fbf
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -1290,6 +1290,12 @@ class actionModel extends model
}
$action->objectLink = helper::createLink($moduleName, $methodName, $params);
if($action->objectType == 'execution')
{
$execution = $this->loadModel('execution')->getById($action->objectID);
if($execution->type == 'kanban') $action->objectLink = helper::createLink('execution', 'kanban', "executionID={$action->objectID}");
}
if($action->objectType == 'doclib')
{
$docLib = $this->dao->select('type,product,project,execution,deleted')->from(TABLE_DOCLIB)->where('id')->eq($action->objectID)->fetch();
+2 -2
View File
@@ -1373,7 +1373,7 @@ class kanbanModel extends model
if(dao::isError()) return false;
$laneID = $this->dao->lastInsertID();
if($lane->type != 'common' and $mode == 'independent') $this->createRDColumn($regionID, $lane->group, $laneID, $lane->type);
if($lane->type != 'common' and $mode == 'independent') $this->createRDColumn($regionID, $lane->group, $laneID, $lane->type, $kanbanID);
return $laneID;
}
@@ -1830,7 +1830,7 @@ class kanbanModel extends model
if($type == 'test') $testColumnID = $this->dao->lastInsertId();
if($type == 'resolving') $resolvingColumnID = $this->dao->lastInsertId();
$this->addKanbanCell($executionID, $laneID, $this->dao->lastInsertId(), $laneType);
if($this->app->rawMethod == 'createRDKanban') $this->addKanbanCell($executionID, $laneID, $this->dao->lastInsertId(), $laneType);
}
}