From b6df37fbbcf27f8ee996b7f9e57b90a3ea388a93 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 19 Aug 2013 11:23:38 +0200 Subject: [PATCH] Form::parse_template: nur dann in WebDAV-Ordner kopieren, wenn Typ bekannt ist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Soll z.B. nicht für GuV oder BWA ziehen. Fixt #2352. --- SL/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 5fd0e687d..d040b5675 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1075,7 +1075,7 @@ sub parse_template { close OUT if $self->{OUT}; - my $copy_to_webdav = $::instance_conf->get_webdav && $::instance_conf->get_webdav_documents && !$self->{preview}; + my $copy_to_webdav = $::instance_conf->get_webdav && $::instance_conf->get_webdav_documents && !$self->{preview} && $self->{tmpdir} && $self->{tmpfile} && $self->{type}; if ($self->{media} eq 'file') { copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file; -- 2.20.1