* Code for fix bug 32562.

This commit is contained in:
tianshujie
2023-03-02 13:30:19 +08:00
parent aba725ef30
commit 89db51f678
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -2633,7 +2633,6 @@ 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);
@@ -2643,6 +2642,11 @@ class execution extends control
if($this->execution->isClickable($execution, $action)) $executionActions[] = $action;
}
/* Set lane type. */
if(!$features['story'] and !$features['qa']) $browseType = 'task';
if(!$features['story']) unset($this->lang->kanban->group->task['story']);
$this->session->set('execLaneType', $browseType);
$userList = array();
$users = $this->loadModel('user')->getPairs('noletter|nodeleted');
$avatarPairs = $this->user->getAvatarPairs('all');
+1 -1
View File
@@ -215,7 +215,7 @@ $('.c-group').change(function()
{
$('.c-group').show();
var type = $('#type').val();
var type = $('#type').val() ? $('#type').val() : browseType;
var group = $('#group').val();
var link = createLink('execution', 'kanban', 'executionID=' + executionID + '&type=' + type + '&orderBy=id_asc' + '&groupBy=' + group);
location.href = link;