* Finish task#36357.

This commit is contained in:
leiyong
2021-03-25 18:00:10 +08:00
parent 65da8c5066
commit 17180656c7
10 changed files with 91 additions and 87 deletions
+10 -6
View File
@@ -37,17 +37,21 @@ class testtask extends control
{
parent::__construct($moduleName, $methodName);
/* Set testtask menu group. */
$this->projectID = isset($_GET['project']) ? $_GET['project'] : 0;
/* Get product data. */
$projectID = 0;
if($this->app->openApp == 'project')
{
$projectID = $this->session->project;
$products = $this->loadModel('project')->getProducts($projectID, false);
}
if($this->app->openApp == 'qa')
{
$products = $this->product->getPairs();
$this->app->loadConfig('qa');
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
}
$this->loadModel('product');
$this->view->products = $this->products = $this->product->getProductPairsByProject($this->projectID);
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', 'fromModule=testtask&moduleGroup=' . $this->lang->navGroup->bug . '&activeMenu=testtask')));
$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")));
}
/**