* Fix sql and rename program to PRJ.
This commit is contained in:
@@ -61,7 +61,7 @@ class tree extends control
|
||||
|
||||
if($viewType == 'story')
|
||||
{
|
||||
$products = $this->product->getPairs('', $this->session->program);
|
||||
$products = $this->product->getPairs('', $this->session->PRJ);
|
||||
|
||||
$this->lang->set('menugroup.tree', 'product');
|
||||
$this->product->setMenu($products, $rootID, $branch, 'story', '', 'story');
|
||||
@@ -81,7 +81,7 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'bug')
|
||||
{
|
||||
$this->loadModel('bug')->setMenu($this->product->getPairs('', $this->session->program), $rootID);
|
||||
$this->loadModel('bug')->setMenu($this->product->getPairs('', $this->session->PRJ), $rootID);
|
||||
$this->lang->tree->menu = $this->lang->bug->menu;
|
||||
$this->lang->tree->menuOrder = $this->lang->bug->menuOrder;
|
||||
$this->lang->set('menugroup.tree', 'qa');
|
||||
@@ -104,7 +104,7 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'case')
|
||||
{
|
||||
$this->loadModel('testcase')->setMenu($this->product->getPairs('', $this->session->program), $rootID);
|
||||
$this->loadModel('testcase')->setMenu($this->product->getPairs('', $this->session->PRJ), $rootID);
|
||||
$this->lang->tree->menu = $this->lang->testcase->menu;
|
||||
$this->lang->tree->menuOrder = $this->lang->testcase->menuOrder;
|
||||
$this->lang->set('menugroup.tree', 'qa');
|
||||
@@ -138,7 +138,7 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'line')
|
||||
{
|
||||
$products = $this->product->getPairs('', $this->session->program);
|
||||
$products = $this->product->getPairs('', $this->session->PRJ);
|
||||
|
||||
$this->lang->set('menugroup.tree', 'product');
|
||||
$this->product->setMenu($products, $rootID, $branch, 'line', '', 'line');
|
||||
@@ -212,7 +212,7 @@ class tree extends control
|
||||
$products = $this->project->getProducts($rootID);
|
||||
$this->view->products = $products;
|
||||
|
||||
$projects = $this->project->getPairs('', $this->session->program);
|
||||
$projects = $this->project->getPairs('', $this->session->PRJ);
|
||||
$this->lang->set('menugroup.tree', 'project');
|
||||
$this->project->setMenu($projects, $rootID);
|
||||
$this->lang->tree->menu = $this->lang->project->menu;
|
||||
@@ -288,7 +288,7 @@ class tree extends control
|
||||
$product = $this->loadModel('product')->getById($module->root);
|
||||
if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($module->root);
|
||||
$this->view->product = $product;
|
||||
$this->view->products = $this->product->getPairs('', $this->session->program);
|
||||
$this->view->products = $this->product->getPairs('', $this->session->PRJ);
|
||||
}
|
||||
|
||||
/* Remove self and childs from the $optionMenu. Because it's parent can't be self or childs. */
|
||||
|
||||
Reference in New Issue
Block a user