set sendMail status back to false
This commit is contained in:
parent
36574241f8
commit
65ddefc89d
|
@ -134,7 +134,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
\OCP\User::getDisplayName()
|
\OCP\User::getDisplayName()
|
||||||
);
|
);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$noMail[] = \OCP\User::getDisplayName($recipient['displayName']);
|
$noMail[] = \OCP\User::getDisplayName($recipient);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$noMail[] = \OCP\User::getDisplayName($recipient);
|
$noMail[] = \OCP\User::getDisplayName($recipient);
|
||||||
|
@ -151,12 +151,10 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
|
||||||
break;
|
break;
|
||||||
case 'informRecipientsDisabled':
|
case 'informRecipientsDisabled':
|
||||||
$itemSource = $_POST['itemSource'];
|
$itemSource = $_POST['itemSource'];
|
||||||
|
$shareType = $_POST['shareType'];
|
||||||
$itemType = $_POST['itemType'];
|
$itemType = $_POST['itemType'];
|
||||||
$recipient = $_POST['recipient'];
|
$recipient = $_POST['recipient'];
|
||||||
//$share = $shareManager->getShares($itemType, array('shareWith' => $recipient, 'isShareWithUser' => true, 'itemSource' => $itemSource));
|
\OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, false);
|
||||||
//$share[0]->setMailSend(false);
|
|
||||||
//$shareManager->update($share[0]);
|
|
||||||
//write status to db
|
|
||||||
OCP\JSON::success();
|
OCP\JSON::success();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -695,9 +695,7 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '#dropdown input[name=mailNotification]', function(event) {
|
$(document).on('click', '#dropdown input[name=mailNotification]', function() {
|
||||||
event.preventDefault();
|
|
||||||
event.stopPropagation();
|
|
||||||
var li = $(this).parent();
|
var li = $(this).parent();
|
||||||
var itemType = $('#dropdown').data('item-type');
|
var itemType = $('#dropdown').data('item-type');
|
||||||
var itemSource = $('#dropdown').data('item-source');
|
var itemSource = $('#dropdown').data('item-source');
|
||||||
|
|
Loading…
Reference in New Issue