summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-01 17:17:28 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-01 17:17:28 -0400
commit2201074e1f1e4ec3c2f60cac74d8168738d83650 (patch)
treec8409702fb43bbafd17428e29253c682817fb8e5 /core/ajax
parent83b935a1c2cd827610a3980ed559ff286ef41431 (diff)
downloadnextcloud-server-2201074e1f1e4ec3c2f60cac74d8168738d83650.tar.gz
nextcloud-server-2201074e1f1e4ec3c2f60cac74d8168738d83650.zip
Basic setup for sharing with contacts
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 905c28a1c29..6f5b927c779 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -75,7 +75,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['item']
foreach ($vcards as $vcard) {
$contact = $vcard['fullname'];
if (stripos($contact, $_GET['search']) !== false && (!isset($_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT]) || !in_array($contact, $_GET['itemShares'][OCP\Share::SHARE_TYPE_CONTACT]))) {
- $shareWith[] = array('label' => $contact, 'value' => array('shareType' => 5, 'shareWith' => $contact));
+ $shareWith[] = array('label' => $contact, 'value' => array('shareType' => 5, 'shareWith' => $vcard['id']));
}
}
}