Skip to content

Commit

Permalink
Merge pull request #6820 from asmecher/i6819-fix
Browse files Browse the repository at this point in the history
#6819 Download the appropriate revision, not the newest
  • Loading branch information
asmecher authored Mar 4, 2021
2 parents 8f06738 + c6d2450 commit e80d6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/api/file/FileApiHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function downloadFile($args, $request) {
}

$filename = Services::get('file')->formatFilename($file->path, $filename);
Services::get('file')->download($submissionFile->getData('fileId'), $filename);
Services::get('file')->download((int) $fileId, $filename);
}

/**
Expand Down

0 comments on commit e80d6f6

Please sign in to comment.