X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/754ef842e3bd40305cacb6e50420acfc3a2b381e..0631649c2c4115f5820829f866af7e2bc2c6623f:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 7fc87e7c4..9628ddffd 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -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)) {