Merge pull request #1157 from nextcloud/stable9.1-init-filesconfig

Make sure file list files config always exists
This commit is contained in:
Lukas Reschke 2016-08-29 21:39:44 +02:00 committed by GitHub
commit 0a1b1d57a7
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@
this._filesConfig = options.config;
} else if (!_.isUndefined(OCA.Files) && !_.isUndefined(OCA.Files.App)) {
this._filesConfig = OCA.Files.App.getFilesConfig();
} else {
this._filesConfig = new OC.Backbone.Model({
'showhidden': false
});
}
if (options.dragOptions) {