From 7af3f622c09e6e75a621ba1849efca8f9a3a589c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 1 Nov 2021 16:26:50 +0800 Subject: [PATCH] * Fix bug #15871. --- module/execution/control.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index afe476ae0f..4a0bf5f6ac 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1831,12 +1831,16 @@ class execution extends control * @access public * @return void */ - public function kanban($executionID, $browseType = 'all', $orderBy = 'order_asc', $groupBy = 'default') + public function kanban($executionID, $browseType = '', $orderBy = 'order_asc', $groupBy = 'default') { + if($browseType == '' and $this->session->kanbanType) $browseType = $this->session->kanbanType; + if($browseType == '' and !$this->session->kanbanType) $browseType = 'all'; + /* Save to session. */ $uri = $this->app->getURI(true); $this->app->session->set('taskList', $uri, 'execution'); $this->app->session->set('bugList', $uri, 'qa'); + $this->app->session->set('kanbanType', $browseType, 'execution'); /* Load language. */ $this->app->loadLang('story');