From 828152603e15160cca294ffc941ab0f9307d1def Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 2 Mar 2017 16:09:38 +0100 Subject: [PATCH] =?utf8?q?WebDAV:=20=C3=9Cberfl=C3=BCssigen=20Aufruf=20web?= =?utf8?q?dav=5Fpath=20im=20Frontend=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- SL/Controller/Letter.pm | 1 - SL/Controller/Order.pm | 1 - bin/mozilla/ap.pl | 1 - bin/mozilla/gl.pl | 1 - 4 files changed, 4 deletions(-) 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'), -- 2.20.1