projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2329b45
)
Dateimanagement: Download-Aktion: Version richtig interpretieren
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 17 Mar 2021 11:20:35 +0000
(12:20 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 17 Mar 2021 15:48:18 +0000
(16:48 +0100)
SL/Controller/File.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/File.pm
b/SL/Controller/File.pm
index
4ff35db
..
5d2e97c
100644
(file)
--- a/
SL/Controller/File.pm
+++ b/
SL/Controller/File.pm
@@
-299,7
+299,10
@@
sub action_ajax_files_uploaded {
sub action_download {
my ($self) = @_;
- my ($id, $version) = split /_/, $::form->{id};
+
+ my $id = $::form->{id};
+ my $version = $::form->{version};
+
my $file = SL::File->get(id => $id );
$file->version($version) if $version;
my $ref = $file->get_content;