aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-23 11:50:59 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-23 11:51:23 +0200
commit508c580e67e8cdec45cd72bc7c34e60890e6576e (patch)
tree8b6c7451579a79431a4b12fadd48a4917799b9d6 /apps/files_trashbin/js
parentaf98e3e641220db4ddf38a9270f535603526f6c5 (diff)
downloadnextcloud-server-508c580e67e8cdec45cd72bc7c34e60890e6576e.tar.gz
nextcloud-server-508c580e67e8cdec45cd72bc7c34e60890e6576e.zip
Fix trashed file name corruption when rerendering trashbin list
The trashbin code does some gymnastics with the file data at render time. This fix makes sure that the modifications done on the file data are only local to the rendering code and doesn't affect the actual file data from the file list.
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r--apps/files_trashbin/js/filelist.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js
index feed28d8fc7..510ab2c21bc 100644
--- a/apps/files_trashbin/js/filelist.js
+++ b/apps/files_trashbin/js/filelist.js
@@ -93,6 +93,8 @@
_renderRow: function(fileData, options) {
options = options || {};
+ // make a copy to avoid changing original object
+ fileData = _.extend({}, fileData);
var dir = this.getCurrentDirectory();
var dirListing = dir !== '' && dir !== '/';
// show deleted time as mtime