Browse Source

Bug 29330: (QA follow-up) Use passed MIME type

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended: tidied.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11/bug30761
Tomás Cohen Arazi 2 years ago
committed by Jonathan Druart
parent
commit
0d6ef70bb0
  1. 2
      C4/Letters.pm

2
C4/Letters.pm

@ -1253,7 +1253,7 @@ sub _add_attachments {
foreach my $attachment ( @$attachments ) {
$message->attach(
Encode::encode( "UTF-8", $attachment->{content} ),
content_type => 'application/octet-stream',
content_type => $attachment->{type} || 'application/octet-stream',
name => $attachment->{filename},
disposition => 'attachment',
);

Loading…
Cancel
Save