Merge branch 'sprint/29_zhouxin_16905' into 'master'

Fix bug #16905.

See merge request easycorp/zentaopms!709
This commit is contained in:
李玉春
2021-12-02 03:19:57 +00:00
+2 -1
View File
@@ -385,7 +385,8 @@ class doc extends control
$link = $this->session->docList ? $this->session->docList : $this->createLink('doc', 'index');
$doc = $this->doc->getById($docID);
if(!empty($objectType) and $objectType != 'doc' and $doc->type != 'chapter')
if(!empty($objectType) and $objectType != 'doc' and $doc->type != 'chapter' and $doc->type != 'article')
{
$link = $this->createLink('doc', 'objectLibs', "type=$objectType&objectID=$objectID&libID=$libID&docID=$docID");
}