* [feedback#7471,done,0.3h] fix editor type field can't show image error.

This commit is contained in:
tianshujie
2024-11-07 08:58:35 +08:00
committed by 刘刚
parent 6b6d84a282
commit 3c589f35dd
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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;
+1 -1
View File
@@ -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);
}
/**