From 08460123f185fc145d4d87ae150b6b5f051d119a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 17 Dec 2021 16:15:21 +0100 Subject: [PATCH] =?utf8?q?Kosmetik:=20Einr=C3=BCckung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 5c14971cb..1ac21c513 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -486,12 +486,12 @@ sub action_send_email { if ($::form->{attachment_policy} ne 'no_file' && !($::form->{attachment_policy} eq 'old_file' && $attfile)) { my $doc; - my @errors = $self->generate_pdf(\$doc, {media => $::form->{media}, - format => $::form->{print_options}->{format}, - formname => $::form->{print_options}->{formname}, - language => $self->order->language, - printer_id => $::form->{print_options}->{printer_id}, - groupitems => $::form->{print_options}->{groupitems}}); + my @errors = $self->generate_doc(\$doc, {media => $::form->{media}, + format => $::form->{print_options}->{format}, + formname => $::form->{print_options}->{formname}, + language => $self->order->language, + printer_id => $::form->{print_options}->{printer_id}, + groupitems => $::form->{print_options}->{groupitems}}); if (scalar @errors) { return $self->js->flash('error', t8('Generating the document failed: #1', $errors[0]))->render($self); } -- 2.20.1