summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-13 17:02:51 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-13 17:02:51 +0200
commitd9f35d8c151801c243efd1353457f74aba75d38a (patch)
treece383786d704ec6e6d40471be98f77c5784d8536 /core/ajax
parentf282a5cff00d2e7ecbfaa0d93d7ab0bf30921701 (diff)
downloadnextcloud-server-d9f35d8c151801c243efd1353457f74aba75d38a.tar.gz
nextcloud-server-d9f35d8c151801c243efd1353457f74aba75d38a.zip
we need the recipient as a additional parameter to know for which share the notification was send
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 37f374c4992..451c761c2cd 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -107,7 +107,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$mailNotification = new OC\Share\MailNotifications();
$result = $mailNotification->sendInternalShareMail($recipientList, $itemSource, $itemType);
- \OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, true);
+ \OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, $recipient, true);
if (empty($result)) {
OCP\JSON::success();
@@ -126,7 +126,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$shareType = $_POST['shareType'];
$itemType = $_POST['itemType'];
$recipient = $_POST['recipient'];
- \OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, false);
+ \OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, $recipient, false);
OCP\JSON::success();
break;