]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/File.pm
Dateimanagement: Download-Aktion: Version richtig interpretieren
[kivitendo-erp.git] / SL / Controller / File.pm
index 4ff35db443d1babf0d811cacada29d01f6d959ca..5d2e97c67268d513a149acabc026f6079d09a0d5 100644 (file)
@@ -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;