* code for task #77242.

This commit is contained in:
wangyidong
2022-11-29 15:50:49 +08:00
parent 71c1466f5a
commit 8d41badb9e
3 changed files with 22 additions and 8 deletions
+9 -4
View File
@@ -69,7 +69,10 @@ class projectrelease extends control
*/
public function browse($projectID = 0, $executionID = 0, $type = 'all', $orderBy = 't1.date_desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
{
$this->session->set('releaseList', $this->app->getURI(true), 'project');
$uri = $this->app->getURI(true);
$this->session->set('releaseList', $uri, 'project');
$this->session->set('buildList', $uri);
$project = $this->project->getById($projectID);
$execution = $this->loadModel('execution')->getById($executionID);
@@ -226,9 +229,6 @@ class projectrelease extends control
*/
public function view($releaseID, $type = 'story', $link = 'false', $param = '', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 100, $pageID = 1)
{
$this->session->set('buildList', $this->app->getURI(true), 'execution');
$this->session->set('storyList', $this->app->getURI(true), $this->app->tab);
$this->loadModel('story');
$this->loadModel('bug');
@@ -243,6 +243,11 @@ class projectrelease extends control
return print(js::error($this->lang->notFound) . js::locate('back'));
}
$uri = $this->app->getURI(true);
if($release->build) $this->session->set('buildList', $uri);
if($type == 'story') $this->session->set('storyList', $uri, $this->app->tab);
if($type == 'bug' or $type == 'leftBug') $this->session->set('bugList', $uri, $this->app->tab);
$sort = common::appendOrder($orderBy);
if(strpos($sort, 'pri_') !== false) $sort = str_replace('pri_', 'priOrder_', $sort);