aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/external.js
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2015-12-14 16:04:05 +0100
committerBjörn Schießle <bjoern@schiessle.org>2015-12-14 17:25:10 +0100
commitc4b65170f2d77298f130f959d85ac3be5f6ea0a8 (patch)
treea6ca8534f66cb6d77e6b170bdf9396a087b67e9a /apps/files_sharing/js/external.js
parentefc030aa25b047a7c9f720cf781f26cbe1d274e0 (diff)
downloadnextcloud-server-c4b65170f2d77298f130f959d85ac3be5f6ea0a8.tar.gz
nextcloud-server-c4b65170f2d77298f130f959d85ac3be5f6ea0a8.zip
show display name but internally use the user name
Diffstat (limited to 'apps/files_sharing/js/external.js')
-rw-r--r--apps/files_sharing/js/external.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/external.js b/apps/files_sharing/js/external.js
index f658de307ab..45a6ef02758 100644
--- a/apps/files_sharing/js/external.js
+++ b/apps/files_sharing/js/external.js
@@ -19,7 +19,7 @@
*/
OCA.Sharing.showAddExternalDialog = function (share, passwordProtected, callback) {
var remote = share.remote;
- var owner = share.owner;
+ var owner = share.ownerDisplayName || share.owner;
var name = share.name;
var remoteClean = (remote.substr(0, 8) === 'https://') ? remote.substr(8) : remote.substr(7);
@@ -92,6 +92,7 @@
remote: share.remote,
token: share.token,
owner: share.owner,
+ ownerDisplayName: share.ownerDisplayName || share.owner,
name: share.name,
password: password}, function(result) {
if (result.status === 'error') {