Mail review stage 7c: emailed and texted replies wait a few seconds on the ticket page with Undo and Send now before they are posted, set in Admin > Settings > Tickets (database 4.3.3); ticket emails sent from another address than the mailbox ITFlow reads ask for replies at that mailbox with Reply-To, which can be turned off there; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-11-30 21:36:09 -05:00
parent 8f68de0f65
commit 20b2d1883e
13 changed files with 264 additions and 5 deletions

View File

@@ -861,7 +861,8 @@ if (isset($_GET['ticket_id'])) {
?>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off" id="ticketReplyForm"
data-billable="<?= $config_module_enable_accounting && $ticket_billable ? 1 : 0 ?>" data-drafts="<?= ticketReplyDraftsReady() ? 1 : 0 ?>">
data-billable="<?= $config_module_enable_accounting && $ticket_billable ? 1 : 0 ?>" data-drafts="<?= ticketReplyDraftsReady() ? 1 : 0 ?>"
data-undo-seconds="<?= ticketReplySendReady() ? ticketReplyUndoSeconds() : 0 ?>">
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
<input type="hidden" name="ticket_id" value="<?= $ticket_id ?>">
@@ -1061,6 +1062,14 @@ if (isset($_GET['ticket_id'])) {
</div>
</div>
<!-- Undo send - an emailed or texted reply waits here, the reply box above it locked, before it goes (agent/js/ticket_reply_extras.js) -->
<div class="alert alert-warning d-flex flex-wrap align-items-center gap-2 py-2 mb-3 d-print-none" role="status" data-reply-hold hidden>
<i class="fas fa-fw fa-paper-plane"></i>
<span class="me-auto"><span data-reply-hold-what>Sending it</span> in <strong data-reply-hold-count></strong> seconds</span>
<button type="button" class="btn btn-sm btn-dark" data-reply-hold-undo><i class="fas fa-undo-alt me-2"></i>Undo</button>
<button type="button" class="btn btn-sm btn-outline-dark" data-reply-hold-now><i class="fas fa-paper-plane me-2"></i>Send now</button>
</div>
</form>
<?php } ?>