* Adjust code.

This commit is contained in:
leiyong
2020-11-05 13:45:48 +08:00
parent 0c1e2de9bc
commit 98f37169e1
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -260,7 +260,7 @@ class productplan extends control
$sort = $this->loadModel('common')->appendOrder($orderBy);
$this->commonAction($plan->product, $plan->branch);
$products = $this->product->getPairs('', $this->session->PRJ);
$products = $this->product->getProductsByProject($this->session->PRJ);
$bugPager = new pager(0, $recPerPage, $type == 'bug' ? $pageID : 1);
$storyPager = new pager(0, $recPerPage, $type == 'story' ? $pageID : 1);
@@ -361,7 +361,7 @@ class productplan extends control
$this->loadModel('tree');
$plan = $this->productplan->getByID($planID);
$this->commonAction($plan->product, $plan->branch);
$products = $this->product->getPairs('', $this->session->PRJ);
$products = $this->product->getProductsByProject($this->session->PRJ);
/* Load pager. */
$this->app->loadClass('pager', $static = true);
@@ -499,7 +499,7 @@ class productplan extends control
$this->loadModel('bug');
$plan = $this->productplan->getByID($planID);
$this->commonAction($plan->product, $plan->branch);
$products = $this->product->getPairs('nocode', $this->session->PRJ);
$products = $this->product->getProductsByProject($this->session->PRJ);
$productID = $plan->product;
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
+1 -1
View File
@@ -111,7 +111,7 @@ class testsuiteModel extends model
{
$suite = fixer::input('post')
->stripTags($this->config->testsuite->editor->create['id'], $this->config->allowedTags)
->add('program', $this->session->PRJ)
->add('PRJ', $this->session->PRJ)
->add('product', (int)$productID)
->add('addedBy', $this->app->user->account)
->add('addedDate', helper::now())
+1 -1
View File
@@ -159,7 +159,7 @@ class testtaskModel extends model
{
$task = fixer::input('post')
->setDefault('build', '')
->setDefault('program', $this->session->PRJ)
->setDefault('PRJ', $this->session->PRJ)
->stripTags($this->config->testtask->editor->create['id'], $this->config->allowedTags)
->join('mailto', ',')
->remove('uid,contactListMenu')