diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 17:56:09 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 17:56:09 +0200 |
commit | 0bd17eff424333b36b431147412ffd0d604422a0 (patch) | |
tree | bb7fbe9a2e5d74529b09d78a0697143b90bf3b88 | |
parent | fd8b5680dd826cf98df3b11b3a079dc70147a2c0 (diff) | |
download | nextcloud-server-0bd17eff424333b36b431147412ffd0d604422a0.tar.gz nextcloud-server-0bd17eff424333b36b431147412ffd0d604422a0.zip |
Use file_source to find matching share for nested link shares
-rw-r--r-- | core/js/share.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 1c59524939c..a6f29921480 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -374,7 +374,7 @@ OC.Share={ if (data.shares) { $.each(data.shares, function(index, share) { if (share.share_type == OC.Share.SHARE_TYPE_LINK) { - if ( !('file_target' in share) ) { + if (itemSource === share.file_source || itemSource === share.item_source) { OC.Share.showLink(share.token, share.share_with, itemSource); } } else { |