From 933d0c9c0692b2f81b53928922f7b87c1550fc59 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 18 Sep 2019 00:11:36 -0600 Subject: [PATCH] Update email_template_edit.php --- app/email_templates/email_template_edit.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/email_templates/email_template_edit.php b/app/email_templates/email_template_edit.php index 437264ee0a..10bd0221eb 100644 --- a/app/email_templates/email_template_edit.php +++ b/app/email_templates/email_template_edit.php @@ -104,11 +104,19 @@ //add the email_template_uuid if (!is_uuid($_POST["email_template_uuid"])) { $email_template_uuid = uuid(); - $_POST["email_template_uuid"] = $email_template_uuid; } //prepare the array - $array['email_templates'][0] = $_POST; + $array['email_templates'][0]['domain_uuid'] = $domain_uuid; + $array['email_templates'][0]['email_template_uuid'] = $email_template_uuid; + $array['email_templates'][0]['template_language'] = $template_language; + $array['email_templates'][0]['template_category'] = $template_category; + $array['email_templates'][0]['template_subcategory'] = $template_subcategory; + $array['email_templates'][0]['template_subject'] = $template_subject; + $array['email_templates'][0]['template_body'] = $template_body; + $array['email_templates'][0]['template_type'] = $template_type; + $array['email_templates'][0]['template_enabled'] = $template_enabled; + $array['email_templates'][0]['template_description'] = $template_description; //save to the data $database = new database;