mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Unify public tickets with client tickets (#3799)
* Merge public ticket logic into regular client tickets * Unified email templates * Unified events and listeners * Remove passthrough service methods * Corrected phpDocs * Create a combined `author` array to replace `client`, `client_id`, `author_name`, `author_email` * Switch to using "Author" instead of "Requester" * Switch to using a single endpoint and single template for client and guest tickets Also left a redirect behind to make sure previously sent emails still have a working link * Add author_role parameter to onBeforeClientOpenTicket * Adjusted rate limit ordering * Update Twig templates and the update patcher * "Public ticket" -> "Guest ticket" * Addressed code review comments * Address code review comments * Also purge old pticket email templates * Fix email sending * Support: enforce auth, fix guest email links * Migrate mod_support config key name --------- Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
This commit is contained in:
1 parent
f39fd44f0f
commit
7ade5bbdf3
46 files changed
+880
-3081
No files matched your search
@@ -1174,46 +1174,6 @@ CREATE TABLE `support_helpdesk` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `support_p_ticket`
|
||||
--
|
||||
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `support_p_ticket` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`hash` varchar(255) DEFAULT NULL,
|
||||
`author_name` varchar(255) DEFAULT NULL,
|
||||
`author_email` varchar(255) DEFAULT NULL,
|
||||
`subject` varchar(255) DEFAULT NULL,
|
||||
`status` varchar(30) DEFAULT 'open',
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `support_p_ticket_message`
|
||||
--
|
||||
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `support_p_ticket_message` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`support_p_ticket_id` bigint(20) DEFAULT NULL,
|
||||
`admin_id` bigint(20) DEFAULT NULL COMMENT 'Filled when message author is admin',
|
||||
`content` text,
|
||||
`ip` varchar(45) DEFAULT NULL,
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `support_p_ticket_id_idx` (`support_p_ticket_id`),
|
||||
KEY `admin_id_idx` (`admin_id`),
|
||||
FULLTEXT KEY `content_idx` (`content`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `support_pr`
|
||||
--
|
||||
@@ -1257,6 +1217,9 @@ CREATE TABLE `support_ticket` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`support_helpdesk_id` bigint(20) DEFAULT NULL,
|
||||
`client_id` bigint(20) DEFAULT NULL,
|
||||
`access_hash` varchar(255) DEFAULT NULL,
|
||||
`author_name` varchar(255) DEFAULT NULL,
|
||||
`author_email` varchar(255) DEFAULT NULL,
|
||||
`priority` int(11) DEFAULT '100',
|
||||
`subject` varchar(255) DEFAULT NULL,
|
||||
`status` varchar(30) DEFAULT 'open' COMMENT 'open, closed, on_hold',
|
||||
@@ -1269,7 +1232,8 @@ CREATE TABLE `support_ticket` (
|
||||
`updated_at` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `support_helpdesk_id_idx` (`support_helpdesk_id`),
|
||||
KEY `client_id_idx` (`client_id`)
|
||||
KEY `client_id_idx` (`client_id`),
|
||||
KEY `access_hash_idx` (`access_hash`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Reference in new issue
Block a user