From: Bernd Bleßmann Date: Sat, 10 Aug 2019 15:53:46 +0000 (+0200) Subject: Auftrags-Controller: mime-type füer odt X-Git-Tag: release-3.5.6.1~519 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8cbcd2447b4024f2182b78ab6fb2ebd147b5b543;p=kivitendo-erp.git Auftrags-Controller: mime-type füer odt --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index abe6b0eb8..7a7841d3c 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -10,6 +10,7 @@ use SL::SessionFile::Random; use SL::PriceSource; use SL::Webdav; use SL::File; +use SL::MIME; use SL::Util qw(trim); use SL::YAML; use SL::DB::Order; @@ -360,7 +361,7 @@ sub action_download_pdf { my $tmp_filename = $::auth->get_session_value("Order::print-${key}"); return $self->send_file( $tmp_filename, - type => 'application/pdf', + type => SL::MIME->mime_type_from_ext($::form->{pdf_filename}), name => $::form->{pdf_filename}, ); }