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:
johnnyq
2026-11-30 14:01:11 -05:00
parent ee3f31ff05
commit b8db50adfa
26 changed files with 253 additions and 189 deletions

View File

@@ -41,7 +41,7 @@ echo json_encode([
'subject' => $email['subject'] ?? '',
'from' => $email ? ($email['from'] !== '' ? $person($email['from_name'], $email['from']) : 'No address yet - set it under From Addresses') : '',
'to' => $email ? $person($email['to_name'], $email['to']) : '',
// Copied in on it - a ticket's watchers, on one email with its contact (emailQueue()'s together)
// Copied in on it - a ticket's CCs, on one email with its contact (emailQueue()'s together)
'cc' => $email ? array_map(function ($copied) use ($person) { return $person($copied['name'], $copied['email']); }, $email['cc'] ?? []) : [],
'also' => array_values(array_unique($others)),
'calendar' => !empty($email['cal_str']),