* Adjust session.

This commit is contained in:
holan20180123
2021-03-24 13:10:39 +08:00
parent 81a90bc517
commit 4a3065bed6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -179,8 +179,8 @@ class build extends control
$this->session->project = $build->project;
/* Set session and load modules. */
if($type == 'story')$this->session->set('storyList', $this->app->getURI(true));
if($type == 'bug') $this->session->set('bugList', $this->app->getURI(true));
if($type == 'story')$this->session->set('storyList', $this->app->getURI(true), 'product');
if($type == 'bug') $this->session->set('bugList', $this->app->getURI(true), 'qa');
$this->loadModel('story');
$this->loadModel('bug');
+1 -1
View File
@@ -832,7 +832,7 @@ class project extends control
$queryID = ($type == 'bysearch') ? (int)$param : 0;
$actionURL = $this->createLink('project', 'build', "projectID=$projectID&type=bysearch&queryID=myQueryID");
$executions = $this->execution->getByProject($projectID, 'all', '', true);
$executions = $this->loadModel('execution')->getByProject($projectID, 'all', '', true);
$this->config->build->search['fields']['execution'] = $this->project->lang->executionCommon;
$this->config->build->search['params']['execution'] = array('operator' => '=', 'control' => 'select', 'values' => array('' => '') + $executions);