* Change judgment condition.

This commit is contained in:
Yagami
2023-05-04 17:05:52 +08:00
parent 1af5aff52b
commit ffd2b525c8
14 changed files with 46 additions and 54 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ class bug extends control
$this->dao->update(TABLE_TODO)->set('status')->eq('done')->where('id')->eq($output['todoID'])->exec();
$this->action->create('todo', $output['todoID'], 'finished', '', "BUG:$bugID");
if($this->config->edition == 'biz' || $this->config->edition == 'max')
if($this->config->edition != 'open')
{
$todo = $this->dao->select('type, idvalue')->from(TABLE_TODO)->where('id')->eq($output['todoID'])->fetch();
if($todo->type == 'feedback' && $todo->idvalue) $this->loadModel('feedback')->updateStatus('todo', $todo->idvalue, 'done');