From 408eb2d44fab173ff90b9087975fe27588604d98 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 7 Dec 2021 14:22:56 +0800 Subject: [PATCH] * Fix bug#17188. --- module/doc/control.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index adb0efa271..f0e7a12db7 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -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');