* Fix bug#11637.

This commit is contained in:
zhujinyong
2021-03-29 11:31:04 +08:00
parent b0901b0483
commit 8beac103a4
2 changed files with 17 additions and 4 deletions
+12 -3
View File
@@ -288,8 +288,6 @@ class bug extends control
{
if(empty($this->products)) $this->locate($this->createLink('product', 'create'));
$this->qa->setMenu($this->products, $productID);
/* Unset discarded types. */
foreach($this->config->bug->discardedTypes as $type) unset($this->lang->bug->typeList[$type]);
@@ -297,7 +295,18 @@ class bug extends control
$extras = str_replace(array(',', ' '), array('&', ''), $extras);
parse_str($extras, $output);
if(isset($output['executionID'])) $this->loadModel('execution')->setMenu($output['executionID']);
if($this->app->openApp == 'execution')
{
$this->loadModel('execution')->setMenu($output['executionID']);
}
else if($this->app->openApp == 'project')
{
$this->loadModel('project')->setMenu($output['projectID']);
}
else
{
$this->qa->setMenu($this->products, $productID);
}
foreach($output as $paramKey => $paramValue)
{
+5 -1
View File
@@ -54,7 +54,11 @@ function createBug(obj)
var onlybody = config.onlybody;
config.onlybody = 'no';
window.open(createLink('bug', 'create', params + ',stepIdList=' + stepIdList), '_parent');
var link = createLink('bug', 'create', params + ',stepIdList=' + stepIdList);
if(onlybody = 'yes') link += '#app=qa';
window.parent.$.apps.open(link);
config.onlybody = onlybody;
}