summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-10 13:39:25 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-10 13:39:25 +0100
commit1b9e291913c93d4f7a96743c93c845e853a4c143 (patch)
tree3bf73c6ed45d670a4281c7ef59c6ce9deb67ff92 /apps/files_versions/js
parenta6f997ddaed4ce9e179761989bbe304ed4176cb4 (diff)
downloadnextcloud-server-1b9e291913c93d4f7a96743c93c845e853a4c143.tar.gz
nextcloud-server-1b9e291913c93d4f7a96743c93c845e853a4c143.zip
Use full path of known file when handling versions
Instead of relying on the versions API response, use the known file path when populating version models.
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r--apps/files_versions/js/versioncollection.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/js/versioncollection.js b/apps/files_versions/js/versioncollection.js
index 176f8e7529c..fdb12bae0a9 100644
--- a/apps/files_versions/js/versioncollection.js
+++ b/apps/files_versions/js/versioncollection.js
@@ -73,12 +73,13 @@
},
parse: function(result) {
+ var fullPath = this._fileInfo.getFullPath();
var results = _.map(result.data.versions, function(version) {
var revision = parseInt(version.version, 10);
return {
id: revision,
name: version.name,
- fullPath: version.path,
+ fullPath: fullPath,
timestamp: revision,
size: version.size
};