From: Bernd Bleßmann Date: Tue, 8 Oct 2019 16:55:38 +0000 (+0200) Subject: Controller::send_file: rendern bei ajax abschalten können X-Git-Tag: release-3.5.6.1~456 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=348d92dd4eef97a607e2ad87eda20e63804c4f89;p=kivitendo-erp.git Controller::send_file: rendern bei ajax abschalten können Damit kann man weitere client_js-Kommandos absetzen. --- diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index b8f53e96a..f9db85aaf 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -159,7 +159,8 @@ sub send_file { if ($::request->is_ajax || $params{ajax}) { my $octets = ref $file_name_or_content ? $file_name_or_content : \ do { local $/ = undef; <$file> }; - $self->js->save_file(MIME::Base64::encode_base64($$octets), $content_type, $size, $attachment_name)->render; + $self->js->save_file(MIME::Base64::encode_base64($$octets), $content_type, $size, $attachment_name); + $self->js->render unless $params{js_no_render}; } else { print $::form->create_http_response(content_type => $content_type, content_disposition => 'attachment; filename="' . $attachment_name . '"',