From 19ee5c1b75fba3b5a11b7b5c2c6d33bbecd8ada5 Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Fri, 3 Feb 2017 07:56:30 +0100 Subject: [PATCH] Anpassungen an neues SL::File::Object Interface Syntaxfehler behoben: Klammer weg --- SL/Controller/DownloadZip.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/DownloadZip.pm b/SL/Controller/DownloadZip.pm index 5bac4ba2e..ffc37155b 100644 --- a/SL/Controller/DownloadZip.pm +++ b/SL/Controller/DownloadZip.pm @@ -64,7 +64,7 @@ sub action_download_orderitems_files { # } if ( scalar (@wanted_files) > 0 ) { $zip->addDirectory($item->part->partnumber); - $zip->addFile(SL::File->get_file_path(dbfile => $_ ), + $zip->addFile($_->get_file, Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->{file_name}) ) for @wanted_files; } @@ -118,7 +118,7 @@ THis method must be inserted into the customer branch: }; if ( rowcount == 0 ) { kivi.display_flash('error', kivi.t8('No articles have been added yet.')); - return false; + return false; } for (var i = 1; i <= rowcount; i++) { data['parts_id_'+i] = $('#id_' + i).val(); -- 2.20.1