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

FEAT #10702 TIME 0:05 Attachments pages 2

parent 6509e0d7
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ class DocumentController ...@@ -175,7 +175,7 @@ class DocumentController
'where' => ['attachment_id = ?', 'type = ?'], 'where' => ['attachment_id = ?', 'type = ?'],
'data' => [$attachment['id'], 'ATTACH'] 'data' => [$attachment['id'], 'ATTACH']
]); ]);
$docserver = DocserverModel::getByType(['type' => 'DOC', 'select' => ['path']]); $docserver = DocserverModel::getByType(['type' => 'ATTACH', 'select' => ['path']]);
$pathToDocument = $docserver['path'] . $adr[0]['path'] . $adr[0]['filename']; $pathToDocument = $docserver['path'] . $adr[0]['path'] . $adr[0]['filename'];
if (is_file($pathToDocument) && is_readable($pathToDocument)) { if (is_file($pathToDocument) && is_readable($pathToDocument)) {
......
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