* Adjust code.

This commit is contained in:
leiyong
2021-03-29 11:27:25 +08:00
parent 5aafe9256c
commit e4b370cbc9
12 changed files with 44 additions and 47 deletions
+3 -1
View File
@@ -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")));
}