Browse Source

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.
tags/v9.0beta1
Vincent Petry 8 years ago
parent
commit
1b9e291913
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      apps/files_versions/js/versioncollection.js

+ 2
- 1
apps/files_versions/js/versioncollection.js View File

@@ -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
};

Loading…
Cancel
Save