diff --git a/module/bug/model.php b/module/bug/model.php index 844b59056d..0e14128fd5 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -587,7 +587,6 @@ class bugModel extends model public function activate(object $bug, array $kanbanParams = array()): bool { $oldBug = parent::fetchByID($bug->id); - $bug = $this->loadModel('file')->processImgURL($bug, $this->config->bug->editor->activate['id'], $this->post->uid); $this->dao->update(TABLE_BUG)->data($bug, 'comment')->check('openedBuild', 'notempty')->autoCheck()->checkFlow()->where('id')->eq($bug->id)->exec(); if(dao::isError()) return false; @@ -613,7 +612,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 . $bug->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);