From ca14277fca2ea3d550606a5234c573d766180815 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 22 Dec 2015 11:17:24 +0100 Subject: [PATCH] Make a modifiable copy of the webdav properties in JS file list Plugins can extend _getWebdavProperties to add custom properties. These should not be added to the original properties list, so now the FileList makes a copy of the array. --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7e1329d115..a3dff2850b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1383,7 +1383,7 @@ * Returns list of webdav properties to request */ _getWebdavProperties: function() { - return this.filesClient.getPropfindProperties(); + return [].concat(this.filesClient.getPropfindProperties()); }, /**