* Code for kanban details.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user