* Return id when create object by API.

This commit is contained in:
holan20180123
2021-05-12 15:44:04 +08:00
parent 53fc060547
commit c5dd642138
4 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ class bugModel extends model
$bug->openedBy = $this->app->user->account;
$bug->openedDate = $now;
$bug->product = (int)$productID;
$bug->branch = (int)$data->branches[$i];
$bug->branch = isset($data->branches) ? (int)$data->branches[$i] : 0;
$bug->module = (int)$data->modules[$i];
$bug->execution = (int)$data->executions[$i];
$bug->openedBuild = implode(',', $data->openedBuilds[$i]);