summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-11 15:24:33 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-15 14:29:37 +0200
commit19e1d35373ba6fe4cd015fda583da813738cf008 (patch)
tree306e1e794b9458a2827685b0edf214da36e37f90 /apps
parent1c792b9f434f08b1d538a7fdfea305b190a5621a (diff)
downloadnextcloud-server-19e1d35373ba6fe4cd015fda583da813738cf008.tar.gz
nextcloud-server-19e1d35373ba6fe4cd015fda583da813738cf008.zip
Fix path for fileinfomodel in subdirectories
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
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});
}