From: Jan Büren Date: Fri, 7 Feb 2014 16:01:46 +0000 (+0100) Subject: Dokumentenarchivierung unabhängig vom WebDAV-Feature X-Git-Tag: release-3.1.0rc1~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c29d964cf0a67d868e6877115bbbe0ae2eeb722e;p=kivitendo-erp.git Dokumentenarchivierung unabhängig vom WebDAV-Feature --- diff --git a/SL/Form.pm b/SL/Form.pm index 730d079ab..218172427 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1080,8 +1080,9 @@ sub parse_template { } close OUT if $self->{OUT}; - - my $copy_to_webdav = $::instance_conf->get_webdav && $::instance_conf->get_webdav_documents && !$self->{preview} && $self->{tmpdir} && $self->{tmpfile} && $self->{type}; + # check only one flag (webdav_documents) + # therefore copy to webdav, even if we do not have the webdav feature enabled (just archive) + my $copy_to_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;