* Adjust code.
This commit is contained in:
@@ -37,6 +37,8 @@ class testtask extends control
|
||||
{
|
||||
parent::__construct($moduleName, $methodName);
|
||||
|
||||
$this->loadModel('product');
|
||||
|
||||
/* Get product data. */
|
||||
$projectID = 0;
|
||||
if($this->app->openApp == 'project')
|
||||
@@ -45,7 +47,7 @@ class testtask extends control
|
||||
$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->loadModel('product')->getPairs();
|
||||
if($this->app->openApp == 'qa' or $this->app->openApp == 'my') $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")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user