From 6d92f44c4b4c36fa5ab46222261e1e5ec6a28c4f Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Thu, 15 Apr 2021 09:43:23 +0800 Subject: [PATCH] * Fix an error. --- module/doc/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index 243d21367b..939107f84b 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -797,7 +797,7 @@ class doc extends control { $doclib = $this->doc->getLibById($libID); $type = $doclib->type == 'execution' ? 'project' : $doclib->type; - $objectID = $type == 'custom' ? 0 : $doclib->$type; + $objectID = $type == 'custom' or $type == 'book' ? 0 : $doclib->$type; } $this->session->set('docList', $this->app->getURI(true), $this->app->openApp);