* Fix bug of bug-assign, and modify its unit test.

This commit is contained in:
liumengyi
2023-05-17 09:48:57 +08:00
parent d574931924
commit ba668929e5
4 changed files with 28 additions and 25 deletions
+4 -4
View File
@@ -720,11 +720,11 @@ class bug extends control
if(!empty($_POST))
{
/* Init bug data. */
$postData = form::data($this->config->bug->form->assignTo);
$bug = $postData->data;
$bug->id = $bugID;
$bug = form::data($this->config->bug->form->assignTo)
->add('id', $bugID)
->get();
$this->bug->assign($bug);
$this->bug->assign($bug, $this->post->comment);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$this->executeHooks($bugID);