Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into release/zentaopms_18.3

This commit is contained in:
caoyanyi
2023-03-23 08:37:45 +08:00
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -916,6 +916,14 @@ class storyModel extends model
}
}
/*Fix product changes when editing requirements on site */
$storyProjectID = $this->dao->select('t2.hasProduct')->from(TABLE_PROJECTPRODUCT)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')
->where('t1.product')->eq($oldStory->product)
->andWhere('t2.deleted')->eq(0)
->fetch();
$_POST['product'] = !$storyProjectID->hasProduct ? $oldStory->product : $this->post->product;
$story = fixer::input('post')
->cleanInt('product,module,pri,duplicateStory')
->cleanFloat('estimate')
+1
View File
@@ -337,6 +337,7 @@ class testsuite extends control
/* Build the search form. */
$this->loadModel('testcase');
$this->config->testcase->search['params']['module']['values'] = $this->loadModel('tree')->getOptionMenu($productID, $viewType = 'case', 0, 'all');
$this->config->testcase->search['params']['lib']['values'] = $this->loadModel('caselib')->getLibraries();
$this->config->testcase->search['module'] = 'testsuite';
$this->config->testcase->search['actionURL'] = inlink('linkCase', "suiteID=$suiteID&param=myQueryID");
unset($this->config->testcase->search['fields']['product']);