]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make a modifiable copy of the webdav properties in JS file list
authorVincent Petry <pvince81@owncloud.com>
Tue, 22 Dec 2015 10:17:24 +0000 (11:17 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 22 Dec 2015 10:17:24 +0000 (11:17 +0100)
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

index 7e1329d1155336951c5a1f01b6c08f0ccf057ad1..a3dff2850bdd8ce4d7ac72645a084f0d2f422bfe 100644 (file)
                 * Returns list of webdav properties to request
                 */
                _getWebdavProperties: function() {
-                       return this.filesClient.getPropfindProperties();
+                       return [].concat(this.filesClient.getPropfindProperties());
                },
 
                /**