* Add the branch switcher in tree browse page.
This commit is contained in:
@@ -207,7 +207,6 @@ $filter->api->edit->get['libID'] = 'int';
|
||||
$filter->api->edit->get['module'] = 'int';
|
||||
$filter->api->edit->get['apiID'] = 'int';
|
||||
|
||||
|
||||
$filter->file->download->cookie[$config->sessionVar] = 'code';
|
||||
|
||||
$filter->mail->ztcloud->cookie['ztCloudLicense'] = 'equal::yes';
|
||||
|
||||
@@ -533,7 +533,8 @@ class productModel extends model
|
||||
|
||||
$notNormalProduct = (isset($currentProduct->type) and $currentProduct->type != 'normal');
|
||||
$isTrackMethod = ($currentModule == 'story' and $currentMethod == 'track');
|
||||
$isShowBranchMethod = (strpos($this->config->product->showBranchMethod, $currentMethod) !== false and $currentModule == 'product') || $isTrackMethod;
|
||||
$isTreeBrowseMethod = ($currentModule == 'tree' and $currentMethod == 'browse');
|
||||
$isShowBranchMethod = (strpos($this->config->product->showBranchMethod, $currentMethod) !== false and $currentModule == 'product') || $isTrackMethod || $isTreeBrowseMethod;
|
||||
if($notNormalProduct and strpos(',testsuite,testreport,', ',' . $currentModule . ',') === false and ($this->app->tab == 'qa' or $isShowBranchMethod))
|
||||
{
|
||||
$this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$currentProduct->type]);
|
||||
|
||||
@@ -31,7 +31,7 @@ class tree extends control
|
||||
|
||||
if($this->app->tab == 'product')
|
||||
{
|
||||
$this->product->setMenu($rootID, 0, 0, '', $viewType);
|
||||
$this->product->setMenu($rootID, $branch, 0, '', $viewType);
|
||||
}
|
||||
else if($this->app->tab == 'qa' and $viewType != 'caselib')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user