Merge branch dev/bug-66335 of zentao/zentaopms (#12355)

This commit is contained in:
刘刚
2025-11-14 13:05:07 +08:00
committed by Gitfox
+3 -1
View File
@@ -600,7 +600,9 @@ class api extends control
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$libID = $this->doc->createApiLib($formData);
$libID = $this->doc->createApiLib($formData);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$objectID = $libType == 'project' ? $this->post->project : $this->post->product;
if(helper::isAjaxRequest('modal')) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'load' => true, 'docApp' => array("selectSpace", ($libType == 'product' || $libType == 'project') ? "$libType.$objectID" : 'nolink', $libID, true)));