From e943a04e6ebe362eefde9ad43f88ad5fc2f8a988 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Sep 2015 14:03:36 +0200 Subject: [PATCH] =?utf8?q?Name=20f=C3=BCr=20Attachment=20auch=20zur=C3=BCc?= =?utf8?q?kliefern,=20wenn=20keine=20Belegnummer=20vorhanden=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index f94660648..9c6a3a8f1 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1301,6 +1301,9 @@ sub generate_attachment_filename { } elsif ($attachment_filename && $self->{"${prefix}number"}) { $attachment_filename .= "_" . $self->{"${prefix}number"} . $self->get_extension_for_format(); + } elsif ($attachment_filename) { + $attachment_filename .= $self->get_extension_for_format(); + } else { $attachment_filename = ""; } -- 2.20.1