From 19e1d35373ba6fe4cd015fda583da813738cf008 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 11 Sep 2015 15:24:33 +0200 Subject: Fix path for fileinfomodel in subdirectories --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c52e414e3a7..1a04512323c 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -327,7 +327,7 @@ // and contain existing models that can be used. // This method would in the future simply retrieve the matching model from the collection. var model = new OCA.Files.FileInfoModel(this.elementToFile($tr)); - if (!model.has('path')) { + if (!model.get('path')) { model.set('path', this.getCurrentDirectory(), {silent: true}); } -- cgit v1.2.3