This commit is contained in:
wangyidong
2022-12-23 12:04:57 +08:00
parent 177dcb534f
commit f40926eed2
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ class projectrelease extends control
$releases = $this->projectrelease->getList($projectID, $type, $orderBy, $pager);
$showBranch = false;
foreach($releases as $release)
foreach($releases as $release)
{
if($release->productType != 'normal')
{
@@ -147,7 +147,7 @@ class projectrelease extends control
$builds = $this->build->getBuildPairs($this->view->product->id, 'all', 'notrunk|withbranch|hasproject', $projectID, 'project', '', false);
$releasedBuilds = $this->projectrelease->getReleasedBuilds($projectID);
foreach($releasedBuilds as $build) unset($builds[$build]);
$this->view->title = $this->view->project->name . $this->lang->colon . $this->lang->release->create;
$this->view->projectID = $projectID;
$this->view->builds = $builds;
@@ -252,7 +252,7 @@ class projectrelease extends control
}
$uri = $this->app->getURI(true);
if($release->build) $this->session->set('buildList', $uri);
if($release->build) $this->session->set('buildList', $uri, 'project');
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);
+1 -1
View File
@@ -181,7 +181,7 @@ class release extends control
if(!$release) return print(js::error($this->lang->notFound) . js::locate($this->createLink('product', 'index')));
$uri = $this->app->getURI(true);
if(!empty($release->build)) $this->session->set('buildList', $uri);
if(!empty($release->build)) $this->session->set('buildList', $uri, 'project');
if($type == 'story') $this->session->set('storyList', $uri, 'product');
if($type == 'bug' or $type == 'leftBug') $this->session->set('bugList', $uri, 'qa');