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

FEAT #11902 TIME 0:15 Fix format

parent 4c02e4b2
No related branches found
No related tags found
No related merge requests found
...@@ -915,7 +915,7 @@ class ActionMethodController ...@@ -915,7 +915,7 @@ class ActionMethodController
'collId' => 'letterbox_coll', 'collId' => 'letterbox_coll',
'docserverTypeId' => 'DOC', 'docserverTypeId' => 'DOC',
'encodedResource' => base64_encode(file_get_contents($pathToDocument)), 'encodedResource' => base64_encode(file_get_contents($pathToDocument)),
'format' => 'pdf' 'format' => $resource['format']
]); ]);
if (!empty($storeResult['errors'])) { if (!empty($storeResult['errors'])) {
return ['errors' => ["[storeResourceOnDocServer] {$storeResult['errors']}"]]; return ['errors' => ["[storeResourceOnDocServer] {$storeResult['errors']}"]];
...@@ -939,7 +939,8 @@ class ActionMethodController ...@@ -939,7 +939,8 @@ class ActionMethodController
'encodedFile' => base64_encode(file_get_contents($pathToDocument)), 'encodedFile' => base64_encode(file_get_contents($pathToDocument)),
'type' => 'response_project', 'type' => 'response_project',
'resIdMaster' => $args['data']['resId'], 'resIdMaster' => $args['data']['resId'],
'title' => $resource['subject'] 'title' => $resource['subject'],
'format' => $resource['format']
]); ]);
if (empty($id) || !empty($id['errors'])) { if (empty($id) || !empty($id['errors'])) {
return ['errors' => ['[storeAttachment] ' . $id['errors']]]; return ['errors' => ['[storeAttachment] ' . $id['errors']]];
...@@ -954,7 +955,8 @@ class ActionMethodController ...@@ -954,7 +955,8 @@ class ActionMethodController
'type' => 'signed_response', 'type' => 'signed_response',
'resIdMaster' => $args['data']['resId'], 'resIdMaster' => $args['data']['resId'],
'title' => $resource['subject'], 'title' => $resource['subject'],
'originId' => $id 'originId' => $id,
'format' => $resource['format']
]); ]);
if (empty($id) || !empty($id['errors'])) { if (empty($id) || !empty($id['errors'])) {
return ['errors' => ['[storeAttachment] ' . $id['errors']]]; return ['errors' => ['[storeAttachment] ' . $id['errors']]];
......
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