Tickets: Email reply has a To line starting with the contact, watchers and colleagues who asked for every update, where the assigned agent, the client's other contacts or a typed address can be added and anyone taken out, and the choice is kept per ticket for its next email reply; moving a ticket to another client takes off watchers who are neither agents nor the new client's contacts; database 3.7.5 adds ticket_mail_choices; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 17:54:20 -05:00
parent 7105d00b77
commit c8fa1ba3b4
8 changed files with 352 additions and 13 deletions

18
db.sql
View File

@@ -4053,6 +4053,24 @@ CREATE TABLE `ticket_history` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ticket_mail_choices`
--
DROP TABLE IF EXISTS `ticket_mail_choices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `ticket_mail_choices` (
`mail_choice_ticket_id` int(11) NOT NULL,
`mail_choice_email` varchar(255) NOT NULL,
`mail_choice_send` tinyint(1) NOT NULL DEFAULT 0,
`mail_choice_by` int(11) NOT NULL DEFAULT 0,
`mail_choice_updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`mail_choice_ticket_id`,`mail_choice_email`),
CONSTRAINT `ticket_mail_choices_ibfk_1` FOREIGN KEY (`mail_choice_ticket_id`) REFERENCES `tickets` (`ticket_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ticket_replies`
--