Skip to content
Snippets Groups Projects
Commit b22220b1 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #14383 TIME 0:05 fix docserver path

parent 652d97b2
No related branches found
No related tags found
No related merge requests found
......@@ -1363,7 +1363,8 @@ class ResController extends ResourceControlController
if (!empty($resource['docserver_id'])) {
$docserver = DocserverModel::getByDocserverId(['docserverId' => $resource['docserver_id'], 'select' => ['path_template']]);
$resource['docserverPathFile'] = $resource['path'] . $docserver['path_template'];
$resource['docserverPathFile'] = $docserver['path_template'] . $resource['path'];
$resource['docserverPathFile'] = str_replace('//', '/', $resource['docserverPathFile']);
}
$resource['creationDate'] = $resource['creation_date'];
......
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