diff --git a/module/bug/model.php b/module/bug/model.php index 7103d112f8..844b59056d 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -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; /* 记录指派动作。*/