From f1f42eccc4eba6495a44d05475283ce8d365d9aa Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 26 Aug 2025 16:23:22 +0800 Subject: [PATCH] * [task#148799,done,1h,0h] Fix closed bugs can change assign user. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* 记录指派动作。*/