Dateimanagement: Anhänge-aller-Artikel-Download: Dateinamen in ZIP gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 08:55:29 +0000 (09:55 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:03:54 +0000 (10:03 +0100)
SL/Controller/DownloadZip.pm

index 0e60896..3304ff6 100644 (file)
@@ -62,7 +62,7 @@ sub action_download_orderitems_files {
       if ( scalar (@wanted_files) > 0 ) {
         $zip->addDirectory($item->part->partnumber);
         $zip->addFile($_->get_file,
-                      Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->{file_name})
+                      Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->db_file->file_name)
                       ) for @wanted_files;
       }
     }