[Pkg-owncloud-commits] [owncloud] 102/273: Use file_source to find matching share for nested link shares

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:13:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 0bd17eff424333b36b431147412ffd0d604422a0
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Jun 27 17:56:09 2014 +0200

    Use file_source to find matching share for nested link shares
---
 core/js/share.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/js/share.js b/core/js/share.js
index 1c59524..a6f2992 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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list