* Finish task#36038.
This commit is contained in:
+22
-1
@@ -11,6 +11,27 @@
|
||||
*/
|
||||
class qa extends control
|
||||
{
|
||||
public $projectID;
|
||||
|
||||
/**
|
||||
* Construct.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
/* Set report menu group. */
|
||||
$this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0;
|
||||
if(!$this->projectID)
|
||||
{
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
$this->lang->noMenuModule[] = $this->app->rawModule;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The index of qa, go to bug's browse page.
|
||||
*
|
||||
@@ -19,7 +40,7 @@ class qa extends control
|
||||
*/
|
||||
public function index($locate = 'auto', $productID = 0)
|
||||
{
|
||||
$this->products = $this->loadModel('product')->getProductPairsByProject($this->session->PRJ);
|
||||
$this->products = $this->loadModel('product')->getProductPairsByProject($this->projectID, 'noclosed');
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=qa")));
|
||||
if($locate == 'yes') $this->locate($this->createLink('bug', 'browse'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user