diff --git a/core/class/docservers_controler.php b/core/class/docservers_controler.php index 358ce304095b2e1633167ae69372baa7aa58250e..723c0c437fe892dfc128e380178c5227be6267ac 100755 --- a/core/class/docservers_controler.php +++ b/core/class/docservers_controler.php @@ -336,6 +336,10 @@ class docservers_controler public function getDocserverToInsert($collId, $typeId = 'DOC') { + if ($collId == 'templates') { + $typeId = 'TEMPLATES'; + } + $db = new Database(); $query = "select docserver_id from docservers where is_readonly = 'N' and coll_id = ? and docserver_type_id = ?"; $stmt = $db->query($query, [$collId, $typeId]);