Auftrags-Controller: Media beim Drucken berücksichtigen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 23 Feb 2022 13:47:46 +0000 (14:47 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 23 Feb 2022 13:47:46 +0000 (14:47 +0100)
SL/Controller/Order.pm

index d605f66..6571eec 100644 (file)
@@ -301,7 +301,8 @@ sub action_print {
   my $doc_filename          = $form->generate_attachment_filename();
 
   my $doc;
-  my @errors = $self->generate_doc(\$doc, { format     => $format,
+  my @errors = $self->generate_doc(\$doc, { media      => $media,
+                                            format     => $format,
                                             formname   => $formname,
                                             language   => $self->order->language,
                                             printer_id => $printer_id,
@@ -368,7 +369,8 @@ sub action_preview_pdf {
   my $pdf_filename          = $form->generate_attachment_filename();
 
   my $pdf;
-  my @errors = $self->generate_doc(\$pdf, { format     => $format,
+  my @errors = $self->generate_doc(\$pdf, { media      => $media,
+                                            format     => $format,
                                             formname   => $formname,
                                             language   => $self->order->language,
                                           });