* Code for fix bug #32562.

This commit is contained in:
tianshujie
2023-03-01 16:22:34 +08:00
parent fdc0e3fa41
commit f159017f45
+6 -2
View File
@@ -2629,11 +2629,14 @@ class execution extends control
$this->session->set('execGroupBy', $groupBy);
$this->session->set('storyList', $this->app->getURI(true), 'execution');
$this->session->set('rdSearchValue', '');
$this->session->set('execLaneType', $browseType);
$features = $this->execution->getExecutionFeatures($execution);
$kanbanData = $this->loadModel('kanban')->getRDKanban($executionID, $browseType, $orderBy, 0, $groupBy);
/* Set lane type. */
if(!$features['story'] and !$features['qa']) $browseType = 'task';
$this->session->set('execLaneType', $browseType);
/* Remove lanes if no feature. */
foreach($kanbanData as $regionID => $region)
{
@@ -2732,7 +2735,6 @@ class execution extends control
$uri = $this->app->getURI(true);
$this->app->session->set('taskList', $uri, 'execution');
$this->app->session->set('bugList', $uri, 'qa');
$this->app->session->set('execLaneType', $browseType);
$this->app->session->set('execGroupBy', $groupBy);
/* Load language. */
@@ -2751,6 +2753,8 @@ class execution extends control
unset($this->lang->kanban->group->task['story']);
}
$this->app->session->set('execLaneType', $browseType);
if($groupBy == 'story' and $browseType == 'task' and !isset($this->lang->kanban->orderList[$orderBy])) $orderBy = 'id_asc';
$kanbanGroup = $this->kanban->getExecutionKanban($executionID, $browseType, $groupBy, '', $orderBy);