* [bug#59319,done,1h] set subModule of menu.
This commit is contained in:
@@ -555,7 +555,13 @@ class testtaskZen extends testtask
|
||||
protected function prepareCasesForBatchRun(int $productID, string $orderBy, string $from, int $taskID, string $confirm, array $caseIdList): array
|
||||
{
|
||||
$this->setMenu($productID, 0, (int)$this->session->project, (int)$this->session->execution);
|
||||
$this->lang->qa->menu->{$from}['subModule'] .= ',testtask';
|
||||
$menu = isset($this->lang->{$this->app->tab}->menu) ? $this->lang->{$this->app->tab}->menu : array();
|
||||
if($this->app->tab != 'qa')
|
||||
{
|
||||
$menu = isset($menu->qa) ? $menu->qa['subMenu'] : array();
|
||||
if(isset($menu->testtask)) $menu->testtask['subModule'] = '';
|
||||
}
|
||||
$menu->{$from}['subModule'] .= ',testtask';
|
||||
|
||||
$orderBy = str_replace('caseID_', 'id_', $orderBy);
|
||||
$cases = $this->dao->select('*')->from(TABLE_CASE)
|
||||
|
||||
Reference in New Issue
Block a user