Skip to content
Snippets Groups Projects
Verified Commit 263ff920 authored by Damien's avatar Damien
Browse files

FEAT #7731 Fix typeId for templates

parent ede92da0
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment