This commit is contained in:
tianshujie98
2020-09-14 09:52:14 +08:00
parent 8405b4a70b
commit 9809766e12
+6
View File
@@ -1181,6 +1181,12 @@ class bugModel extends model
$this->dao->update(TABLE_BUG)->data($bug)->autoCheck()->where('id')->eq((int)$bugID)->exec();
$this->dao->update(TABLE_BUG)->set('activatedCount = activatedCount + 1')->where('id')->eq((int)$bugID)->exec();
$openedBuilds = $this->post->openedBuild;
foreach($openedBuilds as $openedBuild)
{
if(is_numeric($openedBuild)) $this->loadModel('build')->unlinkBug($openedBuild, $bugID);
}
$bug->activatedCount += 1;
return common::createChanges($oldBug, $bug);
}