Revision 38fcf5b4
Von Bernd Bleßmann 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($_->get_file ), Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->file_name)) for @wanted_files; |
|
67 |
$zip->addFile(SL::File->get_file_path(dbfile => $_ ), |
|
68 |
Encode::encode($name_encoding,$item->part->partnumber.'/'.$_->{file_name}) |
|
69 |
) for @wanted_files; |
|
68 | 70 |
} |
69 | 71 |
} |
70 | 72 |
} |
... | ... | |
116 | 118 |
}; |
117 | 119 |
if ( rowcount == 0 ) { |
118 | 120 |
kivi.display_flash('error', kivi.t8('No articles have been added yet.')); |
119 |
return false; |
|
121 |
return false;
|
|
120 | 122 |
} |
121 | 123 |
for (var i = 1; i <= rowcount; i++) { |
122 | 124 |
data['parts_id_'+i] = $('#id_' + i).val(); |
Auch abrufbar als: Unified diff
Revert "Anpassungen an neues SL::File::Object Interface"
This reverts commit 05e0e8ca1544e1ca706a99e51f9caf9a2f56f6af.
Diese Änderung fügt einen Syntax-Fehler ein:
syntax error at /home/bernd/kivi/SL/Controller/DownloadZip.pm line 67, near ")) "
/home/bernd/kivi/SL/Controller/DownloadZip.pm had compilation errors.