* Finish task #7758.

This commit is contained in:
holan20180123
2020-08-31 14:57:44 +08:00
parent 19e7fb8801
commit 7a661001da
41 changed files with 196 additions and 174 deletions
+5 -5
View File
@@ -29,7 +29,7 @@ class bug extends control
$this->loadModel('action');
$this->loadModel('story');
$this->loadModel('task');
$this->view->products = $this->products = $this->product->getPairs('nocode');
$this->view->products = $this->products = $this->product->getPairs('nocode', $this->session->program);
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug")));
}
@@ -122,7 +122,7 @@ class bug extends control
$pager = pager::init($recTotal, $recPerPage, $pageID);
/* Get projects. */
$projects = $this->loadModel('project')->getPairs('empty|withdelete');
$projects = $this->loadModel('project')->getPairs('empty|withdelete', $this->session->program);
/* Get bugs. */
$bugs = $this->bug->getBugs($productID, $projects, $branch, $browseType, $moduleID, $queryID, $sort, $pager);
@@ -588,7 +588,7 @@ class bug extends control
{
session_write_close();
$this->lang->set('menugroup.bug', 'repo');
$repos = $this->loadModel('repo')->getRepoPairs();
$repos = $this->loadModel('repo')->getRepoPairs($this->session->program);
$this->repo->setMenu($repos);
$this->lang->bug->menu = $this->lang->repo->menu;
}
@@ -1514,8 +1514,8 @@ class bug extends control
/* Get users, products and projects. */
$users = $this->loadModel('user')->getPairs('noletter');
$products = $this->loadModel('product')->getPairs('nocode');
$projects = $this->loadModel('project')->getPairs('all|nocode');
$products = $this->loadModel('product')->getPairs('nocode', $this->session->program);
$projects = $this->loadModel('project')->getPairs('all|nocode', $this->session->program);
/* Get related objects id lists. */
$relatedProductIdList = array();