From: Vincent Petry Date: Tue, 22 Dec 2015 10:17:24 +0000 (+0100) Subject: Make a modifiable copy of the webdav properties in JS file list X-Git-Tag: v9.0beta1~439^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca14277fca2ea3d550606a5234c573d766180815;p=nextcloud-server.git 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. --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7e1329d1155..a3dff2850bd 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()); }, /**