Bugzilla – Attachment 127436 Details for
Bug 29303
Quick add form duplicates HTML ID's
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29330: (QA follow-up) Use passed MIME type
Bug-29330-QA-follow-up-Use-passed-MIME-type.patch (text/plain), 1.11 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-11-08 11:12:53 UTC
(
hide
)
Description:
Bug 29330: (QA follow-up) Use passed MIME type
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-11-08 11:12:53 UTC
Size:
1.11 KB
patch
obsolete
>From 483814601b190c41b27e5b2b51a85475f39c46c7 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 8 Nov 2021 08:10:38 -0300 >Subject: [PATCH] Bug 29330: (QA follow-up) Use passed MIME type > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >https://bugs.koha-community.org/show_bug.cgi?id=29303 >--- > C4/Letters.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 1274593807..60465e6f88 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1247,10 +1247,10 @@ sub _add_attachments { > $message->text_body( $letter->{content} ); > } > >- foreach my $attachment ( @$attachments ) { >+ foreach my $attachment (@$attachments) { > $message->attach( > Encode::encode( "UTF-8", $attachment->{content} ), >- content_type => 'application/octet-stream', >+ content_type => ( exists $attachment->{type} && $attachment->{type} ne '' ) ? $attachment->{type} : 'application/octet-stream', > name => $attachment->{filename}, > disposition => 'attachment', > ); >-- >2.33.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29303
:
126681
|
127436