From c3588517b38ac755d4f9c4b29b3c4febdbabee8a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Sat, 16 Dec 2023 16:40:55 +0800 Subject: [PATCH] * Fix bug #41837. --- module/bug/control.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index eb0a5c5456..d60e786e2a 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1188,13 +1188,12 @@ class bug extends control /* 关闭解决的 bugs。 */ /* Close resolved bugs. */ $bugIdList = $releaseID ? $this->post->unlinkBugs : $this->post->bugIdList; + $skipBugs = array(); if($bugIdList) { $bugIdList = array_unique($bugIdList); $bugs = $this->bug->getByIdList($bugIdList); - - $bug = form::data($this->config->bug->form->close)->get(); - $skipBugs = array(); + $bug = form::data($this->config->bug->form->close)->get(); foreach($bugIdList as $bugID) { $oldBug = $bugs[$bugID];