Merge branch 'sprint/209_hufangzhou_23942' into 'master'

* Fix bug #23942.

See merge request easycorp/zentaopms!4260
This commit is contained in:
王怡栋
2022-06-30 05:28:58 +00:00
+2 -1
View File
@@ -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")));
}