Merge branch 'sprint/xieqiyu_fixbug_17188' into 'master'

* Fix bug#17188.

See merge request easycorp/zentaopms!799
This commit is contained in:
李玉春
2021-12-07 07:26:22 +00:00
+7 -1
View File
@@ -189,7 +189,13 @@ class doc extends control
if(!empty($_POST))
{
$changes = $this->doc->updateLib($libID);
if(dao::isError()) die(js::error(dao::getError()));
if(dao::isError())
{
$response['result'] = 'fail';
$response['message'] = dao::getError();
return $this->send($response);
}
if($changes)
{
$actionID = $this->action->create('docLib', $libID, 'edited');