* Set object ID of project drop menu and execution drop menu.

This commit is contained in:
liumengyi
2023-11-02 13:25:47 +08:00
parent 37904e1c80
commit 64ff360f2f
+5
View File
@@ -162,6 +162,11 @@ class bug extends control
$branches = $product->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($bug->product);
$projects = $this->product->getProjectPairsByProduct($bug->product, (string)$bug->branch);
$projectID = key($projects);
if(in_array($this->app->tab, array('project', 'execution')))
{
$objectType = $this->app->tab == 'project' ? 'projectID' : 'executionID';
$this->view->{$objectType} = $this->session->{$this->app->tab};
}
$this->session->set("project", $projectID, 'project');
$this->session->set('storyList', '', 'product');