X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7d020076fcfe27c34c9a68e97df7d969f33c08e2..41ec1a254c67a6bbd3ce97b91fb9521876a2e91b:/SL/Controller/Order.pm?ds=inline diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index bb34a4655..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'), @@ -1134,6 +1133,12 @@ sub _setup_edit_action_bar { t8('E-mail'), call => [ 'kivi.Order.email' ], ], + action => [ + t8('Download attachments of all parts'), + call => [ 'kivi.File.downloadOrderitemsFiles', $::form->{type}, $::form->{id} ], + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, + only_if => $::instance_conf->get_doc_storage, + ], ], # end of combobox "Export" action => [