Merge branch 'sprint/209_hufangzhou_23942' into 'master'
* Fix bug #23942. See merge request easycorp/zentaopms!4260
This commit is contained in:
@@ -251,9 +251,10 @@ class api extends control
|
||||
|
||||
|
||||
$id = $this->api->createStruct($data);
|
||||
if(dao::isError()) return $this->sendError(dao::getError());
|
||||
|
||||
$this->action->create('apistruct', $id, 'Created');
|
||||
|
||||
if(dao::isError()) return $this->sendError(dao::getError());
|
||||
return $this->sendSuccess(array('locate' => helper::createLink('api', 'struct', "libID=$libID")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user