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:
commit
93699d4224
|
@ -629,7 +629,7 @@
|
|||
_onClickDownloadSelected: function(event) {
|
||||
var files;
|
||||
var dir = this.getCurrentDirectory();
|
||||
if (this.isAllSelected()) {
|
||||
if (this.isAllSelected() && this.getSelectedFiles().length > 1) {
|
||||
files = OC.basename(dir);
|
||||
dir = OC.dirname(dir) || '/';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue