diff --git a/module/doc/model.php b/module/doc/model.php index 40fa4ac83d..fc95142170 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2260,7 +2260,7 @@ EOT; { if(empty($type)) { - $doclib = $this->doc->getLibById($libID); + $doclib = $this->getLibById($libID); $type = $doclib->type == 'execution' ? 'project' : $doclib->type; $objectID = $type == 'custom' or $type == 'book' ? 0 : $doclib->$type; }