* Fix bug for kanban execution.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user