X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/38fcf5b43ddbcde995d1fe1c486c0fd49290627c..b8741ec3f7f9723d1226fcdee60635ccb992f41e:/SL/Controller/DownloadZip.pm diff --git a/SL/Controller/DownloadZip.pm b/SL/Controller/DownloadZip.pm index 5bac4ba2e..57c436a2f 100644 --- a/SL/Controller/DownloadZip.pm +++ b/SL/Controller/DownloadZip.pm @@ -20,7 +20,7 @@ sub action_download_orderitems_files { # in kivitendo.conf some regex may be defined: # For no values just let it commented out # PA = Produktionsauftrag, L = Lieferschein, ML = Materialliste - # If you want several options, please seperate the letter with '|'. Example: '^(PA|L).*' + # If you want several options, please separate the letter with '|'. Example: '^(PA|L).*' #set_sales_documenttype_for_delivered_quantity = '^(LS).*' #set_purchase_documenttype_for_delivered_quantity = '^(EL).*' # @@ -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; } @@ -110,7 +110,7 @@ THis method must be inserted into the customer branch: ns.downloadOrderitemsAtt = function(type,id) { var rowcount = $('input[name=rowcount]').val() - 1; - var data = { + var data = { action: 'FileManagement/download_zip', type: type, object_id: id, @@ -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();