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

FEAT #13441 TIME 0:35 Onlyoffice for template

parent 164db432
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,8 @@ class OnlyOfficeController
}
if ($body['objectType'] == 'templateCreation') {
$path = null;
$fileContent = null;
$path = $body['objectId'];
$fileContent = file_get_contents($path);
} elseif ($body['objectType'] == 'templateModification') {
$docserver = DocserverModel::getCurrentDocserver(['typeId' => 'TEMPLATES', 'collId' => 'templates', 'select' => ['path_template']]);
$template = TemplateModel::getById(['id' => $body['objectId'], 'select' => ['template_path', 'template_file_name']]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment