* Add case to bug.

This commit is contained in:
宋辰轩
2022-06-27 14:16:45 +08:00
parent 88e2ca8a01
commit c02d5ad506
+8
View File
@@ -86,6 +86,14 @@ class bugsEntry extends entry
$fields = 'title,project,execution,openedBuild,assignedTo,pri,module,severity,type,story,task,mailto,keywords,steps,uid';
$this->batchSetPost($fields);
$caseID = $this->request('case', 0);
if($caseID) $case = $this->loadModel('testcase')->getById($caseID);
if($case)
{
$this->setPost('case', $case->id);
$this->setPost('caseVersion', $case->version);
}
$this->setPost('product', $productID);
$this->setPost('notifyEmail', implode(',', $this->request('notifyEmail', array())));