From: Jan Büren Date: Thu, 2 Mar 2017 15:09:38 +0000 (+0100) Subject: WebDAV: Überflüssigen Aufruf webdav_path im Frontend entfernt X-Git-Tag: release-3.5.4~1231 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=828152603e15160cca294ffc941ab0f9307d1def;p=kivitendo-erp.git WebDAV: Überflüssigen Aufruf webdav_path im Frontend entfernt WebDAV::get_all_objects ruft in der Methode seit Anbeginn des Moduls schon ein webdav_path auf, von daher schreddern bevor noch mehr copy & waste im Programm passiert --- diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index ed48f41a9..9efca360c 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -578,7 +578,6 @@ sub init_webdav_objects { number => $self->letter->letternumber, ); - my $webdav_path = $webdav->webdav_path; my @all_objects = $webdav->get_all_objects; return [ map { diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 12c689e1c..bc7fc5fc6 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1088,7 +1088,6 @@ sub _pre_render { type => $self->type, number => $self->order->ordnumber, ); - my $webdav_path = $webdav->webdav_path; my @all_objects = $webdav->get_all_objects; @{ $self->{template_args}->{WEBDAV} } = map { { name => $_->filename, type => t8('File'), diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index cc8f4d4b6..038c5741f 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -266,7 +266,6 @@ sub display_form { type => 'accounts_payable', number => $form->{invnumber}, ); - my $webdav_path = $webdav->webdav_path; my @all_objects = $webdav->get_all_objects; @{ $form->{WEBDAV} } = map { { name => $_->filename, type => t8('File'), diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 0776b7503..0838a367d 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -313,7 +313,6 @@ sub edit { type => 'general_ledger', number => $form->{id}, ); - my $webdav_path = $webdav->webdav_path; my @all_objects = $webdav->get_all_objects; @{ $form->{WEBDAV} } = map { { name => $_->filename, type => t8('File'),