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:
@@ -84,7 +84,7 @@ function emailPreviewSample() {
|
||||
$insert("INSERT INTO ticket_replies SET ticket_reply = '" . $e($reply) . "', ticket_reply_type = 'Public', ticket_reply_time_worked = '00:10:00', ticket_reply_by = $me, ticket_reply_ticket_id = $ticket");
|
||||
$client_reply = '<p>The test page came out fine - thank you!</p>';
|
||||
$insert("INSERT INTO ticket_replies SET ticket_reply = '" . $e($client_reply) . "', ticket_reply_type = 'Client', ticket_reply_time_worked = '00:00:00', ticket_reply_by = $alex, ticket_reply_ticket_id = $ticket");
|
||||
$insert("INSERT INTO ticket_watchers SET watcher_email = '" . $e($jamie_email) . "', watcher_ticket_id = $ticket");
|
||||
$insert("INSERT INTO ticket_ccs SET ticket_cc_email = '" . $e($jamie_email) . "', ticket_cc_ticket_id = $ticket");
|
||||
$recurring = $insert("INSERT INTO recurring_tickets SET recurring_ticket_subject = 'Monthly backup check', recurring_ticket_details = '<p>Check last month''s backups ran, and test a restore.</p>',
|
||||
recurring_ticket_priority = 'Low', recurring_ticket_frequency = 'Monthly', recurring_ticket_billable = 0, recurring_ticket_start_date = CURDATE(), recurring_ticket_next_run = CURDATE(),
|
||||
recurring_ticket_created_by = $me, recurring_ticket_assigned_to = $agent, recurring_ticket_client_id = $client_id, recurring_ticket_contact_id = $alex");
|
||||
@@ -201,9 +201,9 @@ function emailPreviewCatalog() {
|
||||
AND ticket_reply_type = 'Client' ORDER BY ticket_reply_id DESC LIMIT 1"))[0] ?? 0);
|
||||
ticketMailRelayClientReply($s['ticket'], $reply_id, $s['alex_name'], $s['alex_email']);
|
||||
}],
|
||||
'ticket_watcher' => ['group' => 'Tickets - to clients', 'label' => 'Added as a CC', 'to' => 'The new CC', 'when' => 'An agent adds a CC and asks to tell them',
|
||||
'ticket_cc' => ['group' => 'Tickets - to clients', 'label' => 'Added as a CC', 'to' => 'The new CC', 'when' => 'An agent adds a CC and asks to tell them',
|
||||
'run' => function ($s) {
|
||||
ticketMailWatchersAdded($s['ticket'], [$s['jamie_email']], $s['by']);
|
||||
ticketMailCcsAdded($s['ticket'], [$s['jamie_email']], $s['by']);
|
||||
}],
|
||||
'ticket_colleague_new' => ['group' => 'Tickets - to clients', 'label' => 'New ticket at their company', 'to' => 'Primary and technical contacts who asked', 'when' => 'Anyone raises a ticket for their company',
|
||||
'run' => function ($s) {
|
||||
|
||||
Reference in New Issue
Block a user