From 5a4821f9216e8c449ac43f8ee749b355f33d3011 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 5 Apr 2015 22:19:15 -0400 Subject: [PATCH] Fixes #181 update notify_customer_(new|reply) and show_suggested on profile page --- admin/profile.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/profile.php b/admin/profile.php index 224b1e7b..6c4982ab 100644 --- a/admin/profile.php +++ b/admin/profile.php @@ -255,6 +255,9 @@ function update_profile() { { $_SESSION['new']['afterreply'] = 0; } + $_SESSION['new']['notify_customer_new'] = isset($_POST['notify_customer_new']) ? 1 : 0; + $_SESSION['new']['notify_customer_reply'] = isset($_POST['notify_customer_reply']) ? 1 : 0; + $_SESSION['new']['show_suggested'] = isset($_POST['show_suggested']) ? 1 : 0; /* Auto-start ticket timer */ $_SESSION['new']['autostart'] = isset($_POST['autostart']) ? 1 : 0; @@ -301,7 +304,10 @@ function update_profile() { `notify_assigned`='".intval($_SESSION['new']['notify_assigned'])."' , `notify_pm`='".intval($_SESSION['new']['notify_pm'])."', `notify_note`='".intval($_SESSION['new']['notify_note'])."', - `notify_note_unassigned`='".intval($_SESSION['new']['notify_note_unassigned'])."' + `notify_note_unassigned`='".intval($_SESSION['new']['notify_note_unassigned'])."', + `notify_customer_new`='".$_SESSION['new']['notify_customer_new']."', + `notify_customer_reply`='".$_SESSION['new']['notify_customer_reply']."', + `show_suggested`='".$_SESSION['new']['show_suggested']."' WHERE `id`='".intval($_SESSION['id'])."' LIMIT 1" );