mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
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:
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
* Admin > Settings > Tickets (admin/settings_ticket.php):
|
||||
* edit_ticket_settings saves the numbering, email to ticket, the emails about a ticket, text to ticket, who hears of a
|
||||
* edit_ticket_settings saves the numbering, email to ticket, the emails about a ticket (with undo send and Reply-To), text to ticket, who hears of a
|
||||
* new ticket and whether AI triages it, whether the first agent to reply to an
|
||||
* unassigned ticket is assigned it, what a quick ticket starts with, the timer
|
||||
* and billing, the messages to clients, closing and the tickets page. A next
|
||||
@@ -24,6 +24,7 @@ if (isset($_POST['edit_ticket_settings'])) {
|
||||
'config_ticket_default_view', 'config_ticket_ordering', 'config_ticket_moving_columns'], aiTriageReady() ? ['config_ticket_ai_triage'] : [],
|
||||
version_compare((string) CURRENT_DATABASE_VERSION, '4.0.9', '>=') ? ['config_ticket_reply_assigns'] : [],
|
||||
ticketMailThreadReady() ? ['config_ticket_email_copy', 'config_ticket_email_relay'] : [],
|
||||
ticketReplySendReady() ? ['config_ticket_reply_undo_seconds', 'config_ticket_reply_to_read'] : [],
|
||||
settingsColumnExists($mysqli, 'config_ticket_sms_parse') ? ['config_ticket_sms_parse', 'config_ticket_sms_unknown_senders', 'config_ticket_sms_acknowledge'] : [],
|
||||
ticketStatusReplyReady() ? ['config_ticket_assigned_message'] : [], ticketNoResponseReady() ? ['config_ticket_no_response_message'] : [],
|
||||
quickTicketReady() ? ['config_quick_ticket_on', 'config_quick_ticket_assign', 'config_quick_ticket_status', 'config_quick_ticket_priority', 'config_quick_ticket_category',
|
||||
@@ -54,6 +55,14 @@ if (isset($_POST['edit_ticket_settings'])) {
|
||||
$after[$switch] = empty($_POST[$switch]) ? 0 : 1;
|
||||
}
|
||||
}
|
||||
// Undo send and Reply-To - once the database has them (functions/ticket_reply_send.php)
|
||||
if (array_key_exists('config_ticket_reply_to_read', $before)) {
|
||||
$after['config_ticket_reply_to_read'] = empty($_POST['config_ticket_reply_to_read']) ? 0 : 1;
|
||||
$after['config_ticket_reply_undo_seconds'] = intval($in['config_ticket_reply_undo_seconds']);
|
||||
if (!isset(TICKET_REPLY_UNDO_CHOICES[$after['config_ticket_reply_undo_seconds']])) {
|
||||
$errors['config_ticket_reply_undo_seconds'] = 'Pick how long from the list.';
|
||||
}
|
||||
}
|
||||
// Text to ticket - once the database has it
|
||||
if (array_key_exists('config_ticket_sms_parse', $before)) {
|
||||
foreach (['config_ticket_sms_parse', 'config_ticket_sms_unknown_senders', 'config_ticket_sms_acknowledge'] as $switch) {
|
||||
|
||||
Reference in New Issue
Block a user