summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-09-02 13:06:00 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:27 +0200
commit44ecdde10d347dc0e77576b35dc3d066dfc0fce6 (patch)
treed29804f71574832ae47514568b3a6e6716db7ea3 /core/js/shareitemmodel.js
parent5db1db38efffc2110e34886263f3a1117fe8efa5 (diff)
downloadnextcloud-server-44ecdde10d347dc0e77576b35dc3d066dfc0fce6.tar.gz
nextcloud-server-44ecdde10d347dc0e77576b35dc3d066dfc0fce6.zip
sharee list view: better handle collections
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index b5370faca0a..d4fbc3543a7 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -357,8 +357,6 @@
return {};
}
- console.log(data.shares);
-
var permissions = this.get('possiblePermissions');
if(!_.isUndefined(data.reshare) && !_.isUndefined(data.reshare.permissions)) {
permissions = permissions & data.reshare.permissions;
@@ -376,7 +374,7 @@
return {
reshare: data.reshare,
- shares: $.map(data.shares, function(value) { return [value]; }),
+ shares: _.toArray(data.shares),
permissions: permissions,
allowPublicUploadStatus: allowPublicUploadStatus
};