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

FIX setInSendAttachment

parent e7bba820
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ class AttachmentController ...@@ -184,7 +184,7 @@ class AttachmentController
$body['isVersion'] = filter_var($body['isVersion'], FILTER_VALIDATE_BOOLEAN); $body['isVersion'] = filter_var($body['isVersion'], FILTER_VALIDATE_BOOLEAN);
$attachment = AttachmentModel::getById(['id' => $aArgs['id'], 'isVersion' => $body['isVersion'], 'select' => ['in_signature_book', 'res_id_master']]); $attachment = AttachmentModel::getById(['id' => $aArgs['id'], 'isVersion' => $body['isVersion'], 'select' => ['in_send_attach', 'res_id_master']]);
if (empty($attachment)) { if (empty($attachment)) {
return $response->withStatus(400)->withJson(['errors' => 'Attachment not found']); return $response->withStatus(400)->withJson(['errors' => 'Attachment not found']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment