From fbcda95ad582f853476ba3bb11a92ff5ec3295bd Mon Sep 17 00:00:00 2001 From: wangyuting Date: Thu, 24 Jul 2025 16:09:00 +0800 Subject: [PATCH] * [bug#64327,done,0.2h,0h] Fix batch active bug comment error. --- 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..f3e31b61ef 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -613,7 +613,7 @@ class bugModel extends model if($changes || $files) { $fileAction = !empty($files) ? $this->lang->addFiles . implode(',', $files) . "\n" : ''; - $actionID = $this->loadModel('action')->create('bug', $bug->id, 'Activated', $fileAction . $this->post->comment); + $actionID = $this->loadModel('action')->create('bug', $bug->id, 'Activated', $fileAction . isset($bug->comment) ? $bug->comment : $this->post->comment); $this->action->logHistory($actionID, $changes); } if($this->config->edition != 'open' && $oldBug->feedback) $this->loadModel('feedback')->updateStatus('bug', $oldBug->feedback, $bug->status, $oldBug->status, $oldBug->id);