Merge pull request #24966 from owncloud/stable9-fix-singlefileselect-download

[stable9] File not found when single file in a folde…
This commit is contained in:
Vincent Petry 2016-06-06 11:28:05 +02:00
commit 93699d4224
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@
_onClickDownloadSelected: function(event) { _onClickDownloadSelected: function(event) {
var files; var files;
var dir = this.getCurrentDirectory(); var dir = this.getCurrentDirectory();
if (this.isAllSelected()) { if (this.isAllSelected() && this.getSelectedFiles().length > 1) {
files = OC.basename(dir); files = OC.basename(dir);
dir = OC.dirname(dir) || '/'; dir = OC.dirname(dir) || '/';
} }