* Code for kanban details.

This commit is contained in:
sunguangming
2024-05-30 14:42:21 +08:00
parent 77688dfd5d
commit 0aa4587fef
+7
View File
@@ -1478,9 +1478,12 @@ class kanbanModel extends model
/* Build kanban group data. */
$kanbanGroup = array();
$links = array();
$execution = $this->loadModel('execution')->fetchById($executionID);
$project = $this->loadModel('project')->fetchById($execution->project);
foreach($lanes as $lane)
{
$laneType = $lane->type;
if(in_array($laneType, array('epic', 'requirement')) && strpos($project->storyType, $laneType) === false) continue;
list($laneData, $columnData, $cardsData) = $this->buildExecutionGroup($lane, $columns, $objectGroup, $searchValue, $menus);
$kanbanID = 'group' . $lane->id;
@@ -2350,8 +2353,12 @@ class kanbanModel extends model
{
$URSRLanes = array();
$parentStoryLaneID = 0;
$execution = $this->loadModel('execution')->fetchById($executionID);
foreach($this->config->kanban->default as $type => $lane)
{
/* 只有综合、需求、设计阶段,才可关联业需、用需。 */
if($execution->type != 'stage' && !in_array($execution->attribute, array('mix', 'request', 'design')) && in_array($type, array('epic', 'requirement'))) continue;
$lane->type = $type;
$lane->execution = $executionID;
$lane->region = 0;