* Code for task #72675.

This commit is contained in:
Yagami
2022-10-20 10:29:33 +08:00
parent 03fe10a21c
commit 382b200985
+4
View File
@@ -499,6 +499,7 @@ class projectrelease extends control
$release = $this->projectrelease->getByID($releaseID);
$build = $this->loadModel('build')->getByID($release->build);
$project = $this->loadModel('project')->getByID($release->project);
$this->commonAction($release->project, $release->product);
$this->loadModel('story');
$this->loadModel('tree');
@@ -512,6 +513,7 @@ class projectrelease extends control
$queryID = ($browseType == 'bySearch') ? (int)$param : 0;
unset($this->config->product->search['fields']['product']);
unset($this->config->product->search['fields']['project']);
if(!$project->hasProduct and !$project->multiple) unset($this->config->product->search['fields']['plan']);
$this->config->product->search['actionURL'] = $this->createLink('projectrelease', 'view', "releaseID=$releaseID&type=story&link=true&param=" . helper::safe64Encode('&browseType=bySearch&queryID=myQueryID'));
$this->config->product->search['queryID'] = $queryID;
$this->config->product->search['style'] = 'simple';
@@ -621,6 +623,7 @@ class projectrelease extends control
/* Set menu. */
$release = $this->projectrelease->getByID($releaseID);
$build = $this->loadModel('build')->getByID($release->build);
$project = $this->loadModel('project')->getByID($release->project);
$this->commonAction($release->project, $release->product);
/* Load pager. */
@@ -632,6 +635,7 @@ class projectrelease extends control
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
unset($this->config->bug->search['fields']['product']);
unset($this->config->bug->search['fields']['project']);
if(!$project->hasProduct and !$project->multiple) unset($this->config->bug->search['fields']['plan']);
$this->config->bug->search['actionURL'] = $this->createLink('projectrelease', 'view', "releaseID=$releaseID&type=$type&link=true&param=" . helper::safe64Encode('&browseType=bySearch&queryID=myQueryID'));
$this->config->bug->search['queryID'] = $queryID;
$this->config->bug->search['style'] = 'simple';