Revision 19ee5c1b
Von Martin Helmling martin.helmling@octosoft.eu vor fast 8 Jahren hinzugefügt
SL/Controller/DownloadZip.pm | ||
---|---|---|
64 | 64 |
# } |
65 | 65 |
if ( scalar (@wanted_files) > 0 ) { |
66 | 66 |
$zip->addDirectory($item->part->partnumber); |
67 |
$zip->addFile(SL::File->get_file_path(dbfile => $_ ),
|
|
67 |
$zip->addFile($_->get_file,
|
|
68 | 68 |
Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->{file_name}) |
69 | 69 |
) for @wanted_files; |
70 | 70 |
} |
... | ... | |
118 | 118 |
}; |
119 | 119 |
if ( rowcount == 0 ) { |
120 | 120 |
kivi.display_flash('error', kivi.t8('No articles have been added yet.')); |
121 |
return false;
|
|
121 |
return false; |
|
122 | 122 |
} |
123 | 123 |
for (var i = 1; i <= rowcount; i++) { |
124 | 124 |
data['parts_id_'+i] = $('#id_' + i).val(); |
Auch abrufbar als: Unified diff
Anpassungen an neues SL::File::Object Interface
Syntaxfehler behoben: Klammer weg