From d1f6e5010a26a1cb109700ca2b97cf75d551f10a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 17 Mar 2021 12:20:35 +0100 Subject: [PATCH] Dateimanagement: Download-Aktion: Version richtig interpretieren --- SL/Controller/File.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SL/Controller/File.pm b/SL/Controller/File.pm index 4ff35db44..5d2e97c67 100644 --- 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; -- 2.20.1