From: Bernd Bleßmann Date: Wed, 17 Mar 2021 11:20:35 +0000 (+0100) Subject: Dateimanagement: Download-Aktion: Version richtig interpretieren X-Git-Tag: kivitendo-mebil_0.1-0~9^2~435 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d1f6e5010a26a1cb109700ca2b97cf75d551f10a;p=kivitendo-erp.git Dateimanagement: Download-Aktion: Version richtig interpretieren --- 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;