From 2c03c30e61deb77f6eafd3992e90afc58a26d374 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 25 Oct 2014 00:14:03 -0400 Subject: [PATCH] #62 The profile page can now handle default settings for sending emails on replies --- admin/profile.php | 12 +++++++++++- language/en/text.php | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/admin/profile.php b/admin/profile.php index e784edad..aea18c18 100644 --- a/admin/profile.php +++ b/admin/profile.php @@ -256,6 +256,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); +
+ +
+
+ +
+
+
@@ -412,6 +420,7 @@ function update_profile() { $_SESSION['new']['notify_assigned'] = empty($_POST['notify_assigned']) ? 0 : 1; $_SESSION['new']['notify_note'] = empty($_POST['notify_note']) ? 0 : 1; $_SESSION['new']['notify_pm'] = empty($_POST['notify_pm']) ? 0 : 1; + $_SESSION['new']['default_notify_customer_email'] = empty($_POST['default_notify_customer_email']) ? 0 : 1; /* Any errors? */ if (strlen($hesk_error_buffer)) @@ -441,7 +450,8 @@ function update_profile() { `notify_reply_my`='".intval($_SESSION['new']['notify_reply_my'])."' , `notify_assigned`='".intval($_SESSION['new']['notify_assigned'])."' , `notify_pm`='".intval($_SESSION['new']['notify_pm'])."', - `notify_note`='".intval($_SESSION['new']['notify_note'])."' + `notify_note`='".intval($_SESSION['new']['notify_note'])."', + `default_notify_customer_email`='".intval($_SESSION['new']['default_notify_customer_email'])."' WHERE `id`='".intval($_SESSION['id'])."' LIMIT 1" ); diff --git a/language/en/text.php b/language/en/text.php index 9ec28540..e1824e3e 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -34,6 +34,8 @@ $hesklang['user_deactivated'] = 'User has been deactivated'; $hesklang['active_user'] = 'Is active user'; $hesklang['self_deactivation'] = 'You cannot deactivate yourself!'; $hesklang['inactive_user'] = 'Your account is currently inactive. Contact an administrator for more information.'; +$hesklang['notify_customer_email'] = 'Emails to customer on reply'; +$hesklang['notify_customer_email_text'] = 'Don\'t send email notifications of replies to the customer by default'; // ADDED OR MODIFIED IN NuMods 1.4.0 $hesklang['numods'] = 'NuMods';