]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/io.pl
Files: Druckvariante beim Drucken speichern und bei E-Mail darauf prüfen, …
[mfinanz.git] / bin / mozilla / io.pl
index 7fc87e7c4e28f14def94ddbfbca720a54e833321..9628ddffda77c78e4c0cf0373b55a877248a3c71 100644 (file)
@@ -2161,9 +2161,10 @@ sub send_sales_purchase_email {
   # Is an old file version available?
   my $attfile;
   if ($::form->{attachment_policy} eq 'old_file') {
-    $attfile = SL::File->get_all(object_id   => $id,
-                                 object_type => $::form->{formname},
-                                 file_type   => 'document');
+    $attfile = SL::File->get_all(object_id     => $id,
+                                 object_type   => $type,
+                                 file_type     => 'document',
+                                 print_variant => $::form->{formname},);
   }
 
   if ($::form->{attachment_policy} eq 'no_file' || ($::form->{attachment_policy} eq 'old_file' && $attfile)) {