* Fix bug#11644.
This commit is contained in:
@@ -46,10 +46,18 @@ class testtask extends control
|
||||
$projectID = $this->session->project;
|
||||
$products = $this->loadModel('project')->getProducts($projectID, false);
|
||||
}
|
||||
if($this->app->openApp == 'execution') $products = $this->loadModel('execution')->getProducts($this->session->execution, false);
|
||||
if($this->app->openApp == 'qa' or $this->app->openApp == 'my') $products = $this->product->getPairs();
|
||||
elseif($this->app->openApp == 'execution')
|
||||
{
|
||||
$products = $this->loadModel('execution')->getProducts($this->session->execution, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$products = $this->product->getPairs();
|
||||
}
|
||||
|
||||
$this->view->products = $this->products = $products;
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "moduleName={$this->app->openApp}&activeMenu=testtask&projectID=$projectID")));
|
||||
$openApp = ($this->app->openApp == 'project' or $this->app->openApp == 'execution') ? $this->app->openApp : 'qa';
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "moduleName=$openApp&activeMenu=testtask&projectID=$projectID")));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user