summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-08-14 17:45:39 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-08-14 17:45:39 +0200
commit64c3fe670c84b286635bca10fff8383e223f2780 (patch)
tree1cda12512276064491f9fcb263e69ae42c62fdb6 /core
parenta645da3640c47a1676429609ee3447d2c7368984 (diff)
parentd9f35d8c151801c243efd1353457f74aba75d38a (diff)
downloadnextcloud-server-64c3fe670c84b286635bca10fff8383e223f2780.tar.gz
nextcloud-server-64c3fe670c84b286635bca10fff8383e223f2780.zip
Merge pull request #10399 from owncloud/fix_setSendMailStatus
[sharing] fix mail notification
Diffstat (limited to 'core')
-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;