Enhance email template validation and error handling (#3720)

* Add email template validation and error tracking

* Email templates: bulk actions & batch delete

* Add email template syntax checker

* Add last_error to template API; remove error styling

* Add error fields to email_template

* Render templates during validation with vars

* Update crypt mock expectation in Email test
This commit is contained in:
Adam Daley authored and GitHub committed 2026-06-04 19:35:48 +01:00
1 parent 49df7e40d4
commit d312170e46
19 files changed
+653 -145

No files matched your search

+2
View File
@@ -417,6 +417,8 @@ CREATE TABLE `email_template` (
`content` text,
`description` text,
`vars` text,
`last_error` text DEFAULT NULL,
`error_checked_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `action_code` (`action_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;