* [task#148799,done,1h,0h] Fix closed bugs can change assign user.

This commit is contained in:
wangyuting
2025-08-28 15:50:36 +08:00
parent bd402ffb7f
commit f1f42eccc4
+1 -1
View File
@@ -404,7 +404,7 @@ class bugModel extends model
*/
public function assign(object $bug, object $oldBug): bool
{
$this->dao->update(TABLE_BUG)->data($bug, 'comment')->autoCheck()->checkFlow()->where('id')->eq($bug->id)->exec();
$this->dao->update(TABLE_BUG)->data($bug, 'comment')->autoCheck()->checkFlow()->where('id')->eq($bug->id)->andWhere('status')->ne('closed')->exec();
if(dao::isError()) return false;
/* 记录指派动作。*/