This commit is contained in:
wangyidong
2021-03-31 16:12:35 +08:00
parent 9a010bf5ef
commit 66cee22b67
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -85,7 +85,7 @@
common::printIcon('bug', 'close', $params, $bug, 'button', '', '', 'text-danger iframe showinonlybody', true);
common::printIcon('bug', 'activate', $params, $bug, 'button', '', '', 'text-success iframe showinonlybody', true);
common::printIcon('bug', 'toStory', "product=$bug->product&branch=$bug->branch&module=0&story=0&execution=0&bugID=$bug->id", $bug, 'button', $lang->icons['story'], '', '', '', "data-app='product'", $lang->bug->toStory);
common::printIcon('bug', 'toStory', "product=$bug->product&branch=$bug->branch&module=0&story=0&execution=0&bugID=$bug->id", $bug, 'button', $lang->icons['story'], '', '', '', "data-app='" . ($this->app->openApp == 'project' ? 'project' : 'product') . "'", $lang->bug->toStory);
common::printIcon('bug', 'createCase', $convertParams, $bug, 'button', 'sitemap');
echo $this->buildOperateMenu($bug, 'view');
+4
View File
@@ -273,6 +273,10 @@ class testcase extends control
{
$this->loadModel('execution')->setMenu($this->session->execution);
}
else
{
$this->qa->setMenu($this->products, $productID, $branch);
}
$testcaseID = ($from and strpos('testcase|work|contribute', $from)) ? $param : 0;
$bugID = $from == 'bug' ? $param : 0;