mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Rename watchers to CCs in the database and code: database 4.2.8 renames ticket_watchers to ticket_ccs with its columns and index, functions, settings, form and post names, the Add CC modal file, JavaScript IDs, the email preview key and the To line group follow; the ticket email parser waits while a database update is pending instead of flagging email it cannot take; 26.12.3 changelog updated
This commit is contained in:
@@ -827,7 +827,7 @@ function demoDataRemove($mysqli) {
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_replies WHERE ticket_reply_ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_history WHERE ticket_history_ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_assets WHERE ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_watchers WHERE watcher_ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_ccs WHERE ticket_cc_ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_views WHERE view_ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_reads WHERE ticket_id IN ($ticket_ids)");
|
||||
mysqli_query($mysqli, "DELETE FROM ticket_attachments WHERE ticket_attachment_ticket_id IN ($ticket_ids)");
|
||||
@@ -2602,11 +2602,11 @@ function demoSeedTicket($mysqli, $fields, $trail, $context, &$counts) {
|
||||
|
||||
}
|
||||
|
||||
// A watcher, where somebody else wanted to be kept in the loop
|
||||
if (!empty($trail['watcher'])) {
|
||||
starterInsert($mysqli, 'ticket_watchers', [
|
||||
'watcher_email' => $trail['watcher'],
|
||||
'watcher_ticket_id' => $ticket_id,
|
||||
// A CC, where somebody else wanted to be kept in the loop
|
||||
if (!empty($trail['cc'])) {
|
||||
starterInsert($mysqli, 'ticket_ccs', [
|
||||
'ticket_cc_email' => $trail['cc'],
|
||||
'ticket_cc_ticket_id' => $ticket_id,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2937,7 +2937,7 @@ function demoBuildTickets($mysqli, $profile, $index, $client_id, $contact_ids, $
|
||||
'sla_paused_at' => $on_hold ? demoDateTime(max(0, $stage['created'] - 1), 11, 30) : '',
|
||||
'replies' => $replies,
|
||||
'tasks' => !$stage['closed'] ? ($ticket['tasks'] ?? []) : [],
|
||||
'watcher' => $slot === 3 && $contact_ids ? demoContactEmail($profile['people'][0][0], $profile['domain']) : '',
|
||||
'cc' => $slot === 3 && $contact_ids ? demoContactEmail($profile['people'][0][0], $profile['domain']) : '',
|
||||
], $context, $counts);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user