From: Vincent Petry Date: Mon, 22 Aug 2016 07:45:21 +0000 (+0200) Subject: Make sure file list files config always exists X-Git-Tag: v11.0RC2~729^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29b45c5c426d390ed2f90720b6c987883708ba2e;p=nextcloud-server.git Make sure file list files config always exists Initialize files config with defaults in case none was passed --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f191ade240b..e11f828b7c6 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -212,6 +212,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) {