* Return id when create object by API.

This commit is contained in:
holan20180123
2021-05-12 16:33:35 +08:00
parent df22b0a09f
commit ac6f3f5201
6 changed files with 24 additions and 18 deletions
+2
View File
@@ -108,6 +108,8 @@ class projectrelease extends control
$this->loadModel('action')->create('release', $releaseID, 'opened');
$this->executeHooks($releaseID);
if($this->viewType == 'json') $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $releaseID));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('view', "releaseID=$releaseID")));
}