* Finish task#36038.

This commit is contained in:
leiyong
2021-02-23 14:36:54 +08:00
parent 151760b145
commit 20075135ab
19 changed files with 147 additions and 29 deletions
+12 -2
View File
@@ -11,7 +11,8 @@
*/
class bug extends control
{
public $products = array();
public $products = array();
public $projectID = 0;
/**
* Construct function, load some modules auto.
@@ -32,7 +33,16 @@ class bug extends control
$this->loadModel('story');
$this->loadModel('task');
$this->view->products = $this->products = $this->product->getProductPairsByProject($this->session->PRJ);
/* Set bug menu group. */
$this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0;
if(!$this->projectID)
{
$this->app->loadConfig('qa');
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
$this->lang->noMenuModule[] = $this->app->rawModule;
}
$this->view->products = $this->products = $this->product->getProductPairsByProject($this->projectID);
if($this->session->PRJ and empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug")));
}