From: Udo Spallek Date: Thu, 18 Jan 2007 16:21:51 +0000 (+0000) Subject: parse_template erweitert um die Mgl. einen Dateinamen ($form->{attachment_filename... X-Git-Tag: release-2.4.1~1^2~20 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c1fc643715daab0d9aff2358d4a793715edb8770;p=kivitendo-erp.git parse_template erweitert um die Mgl. einen Dateinamen ($form->{attachment_filename}) fuer das Attachmentfile anzugeben, der anders ist als $form->{tmpfile} --- diff --git a/SL/Form.pm b/SL/Form.pm index a575ea6f1..e0791c469 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -868,10 +868,10 @@ sub parse_template { open(OUT, $self->{OUT}) or $self->error($self->cleanup . "$self->{OUT} : $!"); } else { - + $self->{attachment_filename} = $self->{tmpfile} if ($self->{attachment_filename} eq ''); # launch application print qq|Content-Type: | . $template->get_mime_type() . qq| -Content-Disposition: attachment; filename="$self->{tmpfile}" +Content-Disposition: attachment; filename="$self->{attachment_filename}" Content-Length: $numbytes |;