* Code for task #72675.
This commit is contained in:
@@ -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¶m=" . 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¶m=" . helper::safe64Encode('&browseType=bySearch&queryID=myQueryID'));
|
||||
$this->config->bug->search['queryID'] = $queryID;
|
||||
$this->config->bug->search['style'] = 'simple';
|
||||
|
||||
Reference in New Issue
Block a user