$b->setBugData($bugInfos); $b->save(); $newAssignee = $bugInfos['FK_dev_ID']; if ($oldAssignee != $newAssignee) { $b->notify('assign'); } $data['bug'] = $b->getBugData(); $data['error'] = "OK"; $data['message'] = $LANG['Update_bug_OK']; } if ($action === 'killBug') { if (!isset($bugID)) { throw new Exception("killBug: bug's ID is missing!"); } $b = new Bug((int) $bugID); $b->killBug(); $b->notify('close'); $data['error'] = "OK"; $data['message'] = $LANG['Kill_bug_OK']; } if ($action === 'removeBug') { if (!isset($bugID)) { throw new Exception("removeBug: bug's ID is missing!"); } $b = new Bug((int) $bugID); $b->removeBug(); $data['error'] = "OK"; $data['message'] = $LANG['Delete_bug_OK']; } if ($action === 'addComm') { if (!isset($bugID)) {