* Fix api.

This commit is contained in:
zhengrunyu
2022-04-13 16:28:47 +08:00
parent 0b793291df
commit 7643aa1122
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class bugConfirmEntry extends Entry
if(!$data) return $this->send400('error');
if(isset($data->status) and $data->status == 'fail') return $this->sendError(zget($data, 'code', 400), $data->message);
$bug = this->loadModel('bug')->getByID($bugID);
$bug = $this->loadModel('bug')->getById($bugID);
$this->send(200, $this->format($bug, 'openedBy:user,openedDate:time,assignedTo:user,assignedDate:time,reviewedBy:user,reviewedDate:time,lastEditedBy:user,lastEditedDate:time,closedBy:user,closedDate:time,deleted:bool,mailto:userList'));
}
+1 -1
View File
@@ -20,7 +20,7 @@ class bugResolveEntry extends Entry
*/
public function post($bugID)
{
$fields = 'resolution,resolvedBuild,resolvedDate,assignedTo,uid,comment';
$fields = 'resolution,resolvedBuild,resolvedDate,duplicateBug,assignedTo,uid,comment';
$this->batchSetPost($fields);
$control = $this->loadController('bug', 'resolve');