This commit is contained in:
tianshujie98
2020-09-11 16:53:16 +08:00
parent dd4331be7c
commit b9e61a1852
+6
View File
@@ -1206,6 +1206,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);
}