diff --git a/module/bug/model.php b/module/bug/model.php index bc055b2196..bc013e2030 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -537,6 +537,7 @@ 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; @@ -581,6 +582,7 @@ class bugModel extends model public function close(object $bug, array $output = array()): bool { $oldBug = $this->getById($bug->id); + $bug = $this->loadModel('file')->processImgURL($bug, $this->config->bug->editor->close['id'], $this->post->uid); $this->dao->update(TABLE_BUG)->data($bug, 'comment')->autoCheck()->checkFlow()->where('id')->eq($bug->id)->exec(); if(dao::isError()) return false; diff --git a/module/bug/zen.php b/module/bug/zen.php index a2068a06ca..5adc9ce7e7 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -1299,7 +1299,7 @@ class bugZen extends bug if($testtaskID and empty($oldBug->testtask)) $bug->testtask = $testtaskID; } - return $bug; + return $this->loadModel('file')->processImgURL($bug, $this->config->bug->editor->resolve['id'], $this->post->uid); } /**