From: Moritz Bunkus Date: Wed, 3 Jul 2013 07:57:14 +0000 (+0200) Subject: Datei vor Kopieren schließen X-Git-Tag: release-3.1.0beta1~222 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=53c26ac20286b4f80238778ef6d649ea1c77e077;p=kivitendo-erp.git Datei vor Kopieren schließen --- diff --git a/SL/Form.pm b/SL/Form.pm index 5c701f792..fc900c108 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1069,9 +1069,11 @@ sub parse_template { $self->cleanup(); $self->error("$self->{IN} : " . $template->get_error()); } + + close OUT if $self->{OUT}; + Common::copy_file_to_webdav_folder($self) if ($::instance_conf->get_webdav and $::instance_conf->get_webdav_documents and not $self->{preview}); - close OUT if $self->{OUT}; if ($self->{media} eq 'file') { copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file;