Fix path for fileinfomodel in subdirectories

This commit is contained in:
Robin Appelman 2015-09-11 15:24:33 +02:00
parent 1c792b9f43
commit 19e1d35373
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@
// and contain existing models that can be used. // and contain existing models that can be used.
// This method would in the future simply retrieve the matching model from the collection. // This method would in the future simply retrieve the matching model from the collection.
var model = new OCA.Files.FileInfoModel(this.elementToFile($tr)); var model = new OCA.Files.FileInfoModel(this.elementToFile($tr));
if (!model.has('path')) { if (!model.get('path')) {
model.set('path', this.getCurrentDirectory(), {silent: true}); model.set('path', this.getCurrentDirectory(), {silent: true});
} }