]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure file list files config always exists 1146/head
authorVincent Petry <pvince81@owncloud.com>
Mon, 22 Aug 2016 07:45:21 +0000 (09:45 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 29 Aug 2016 12:44:25 +0000 (14:44 +0200)
Initialize files config with defaults in case none was passed

apps/files/js/filelist.js

index f191ade240bb8a5a437184064627535ddceae3e9..e11f828b7c65c8f1809694bbdc071d299fc736a7 100644 (file)
                                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) {