* Fix the navigation highlighting problem of the testtask.

This commit is contained in:
tianshujie98
2021-04-30 10:13:43 +08:00
parent fd2cea594a
commit 28af0816de
+7 -3
View File
@@ -722,8 +722,12 @@ class testtask extends control
/* Set menu. */
if($this->app->openApp == 'project')
{
$this->lang->scrum->menu->qa['subMenu']->testcase['subModule'] = 'testtask';
$this->lang->scrum->menu->qa['subMenu']->testtask['subModule'] = '';
if($task->auto == 'unit')
{
$this->lang->scrum->menu->qa['subMenu']->testcase['subModule'] = 'testtask';
$this->lang->scrum->menu->qa['subMenu']->testtask['subModule'] = '';
}
$this->loadModel('project')->setMenu($task->project);
$this->lang->modulePageNav = $this->product->select($this->products, $productID, 'testtask', 'browseUnits');
}
@@ -734,7 +738,7 @@ class testtask extends control
else
{
$this->loadModel('qa')->setMenu($this->products, $productID, $task->branch, $taskID);
$this->app->rawModule = 'testcase';
if($task->auto == 'unit') $this->app->rawModule = 'testcase';
}
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->edit;