X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/20069819d0de7313f5f6fcc724d0ea35d8fd0bd6..3cacc231755cc70a315f217bdcc74dc99f24d8aa:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 6c3785b4d..874aacee6 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -468,7 +468,7 @@ sub header { $layout->use_javascript("$_.js") for (qw( jquery jquery-ui jquery.cookie jqModal jquery.checkall jquery.download - common part_selection switchmenuframe + common part_selection switchmenuframe autocomplete_part ), "jquery/ui/i18n/jquery.ui.datepicker-$::myconfig{countrycode}"); $self->{favicon} ||= "favicon.ico"; @@ -1070,11 +1070,11 @@ sub parse_template { 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}); + my $copy_to_webdav = $::instance_conf->get_webdav && $::instance_conf->get_webdav_documents && !$self->{preview}; if ($self->{media} eq 'file') { copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file; + Common::copy_file_to_webdav_folder($self) if $copy_to_webdav; $self->cleanup; chdir("$self->{cwd}"); @@ -1083,6 +1083,8 @@ sub parse_template { return; } + Common::copy_file_to_webdav_folder($self) if $copy_to_webdav; + if ($self->{media} eq 'email') { my $mail = new Mailer;