From a79fb460e7bfa9b6390d72be5533f634b842c87a Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Wed, 17 Apr 2019 12:20:25 +0200 Subject: [PATCH] FIX setInSendAttachment --- src/app/attachment/controllers/AttachmentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/attachment/controllers/AttachmentController.php b/src/app/attachment/controllers/AttachmentController.php index 1357a3a3233..fa726022d11 100755 --- a/src/app/attachment/controllers/AttachmentController.php +++ b/src/app/attachment/controllers/AttachmentController.php @@ -184,7 +184,7 @@ class AttachmentController $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)) { return $response->withStatus(400)->withJson(['errors' => 'Attachment not found']); } -- GitLab