\OCP\User::getDisplayName()
);
} catch (Exception $exception) {
- $noMail[] = \OCP\User::getDisplayName($recipient['displayName']);
+ $noMail[] = \OCP\User::getDisplayName($recipient);
}
} else {
$noMail[] = \OCP\User::getDisplayName($recipient);
break;
case 'informRecipientsDisabled':
$itemSource = $_POST['itemSource'];
+ $shareType = $_POST['shareType'];
$itemType = $_POST['itemType'];
$recipient = $_POST['recipient'];
- //$share = $shareManager->getShares($itemType, array('shareWith' => $recipient, 'isShareWithUser' => true, 'itemSource' => $itemSource));
- //$share[0]->setMailSend(false);
- //$shareManager->update($share[0]);
- //write status to db
+ \OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, false);
OCP\JSON::success();
break;
}
});
- $(document).on('click', '#dropdown input[name=mailNotification]', function(event) {
- event.preventDefault();
- event.stopPropagation();
+ $(document).on('click', '#dropdown input[name=mailNotification]', function() {
var li = $(this).parent();
var itemType = $('#dropdown').data('item-type');
var itemSource = $('#dropdown').data('item-source');