From f8f6bdc8bbbd0a8fab01829cc39ec723fb80e2ef Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 30 Nov 2023 16:17:09 +0800 Subject: [PATCH] * Merge 18.9 bug module. --- module/bug/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index 809a31b0a5..dbf6a6c8a7 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -314,6 +314,8 @@ class bug extends control $bug = form::data($this->config->bug->form->assignTo)->add('id', $bugID)->get(); $bug = $this->loadModel('file')->processImgURL($bug, $this->config->bug->editor->assignto['id'], $this->post->uid); + if($this->app->rawMethod == 'batchassignto') unset($bug->mailto); + if($oldBug->status != 'closed') $this->bug->assign($bug, $oldBug); if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));