diff --git a/admin/profile.php b/admin/profile.php
index 1971b542..8a75d308 100644
--- a/admin/profile.php
+++ b/admin/profile.php
@@ -228,11 +228,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+
-
@@ -257,6 +257,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+
@@ -394,6 +402,9 @@ function update_profile() {
/* Auto-start ticket timer */
$_SESSION['new']['autostart'] = isset($_POST['autostart']) ? 1 : 0;
+ /* Update auto-refresh time */
+ $_SESSION['new']['autorefresh'] = isset($_POST['autorefresh']) ? $_POST['autorefresh'] : 0;
+
/* Notifications */
$_SESSION['new']['notify_new_unassigned'] = empty($_POST['notify_new_unassigned']) || ! $can_view_unassigned ? 0 : 1;
$_SESSION['new']['notify_new_my'] = empty($_POST['notify_new_my']) ? 0 : 1;
@@ -415,6 +426,7 @@ function update_profile() {
else
{
/* Update database */
+ //TODO Add auto-refresh to the update SQL
hesk_dbQuery(
"UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` SET
`name`='".hesk_dbEscape($_SESSION['new']['name'])."',
@@ -424,6 +436,7 @@ function update_profile() {
$sql_pass ,
`afterreply`='".intval($_SESSION['new']['afterreply'])."' ,
`autostart`='".intval($_SESSION['new']['autostart'])."' ,
+ `autorefresh`='".intval($_SESSION['new']['autorefresh'])."' ,
`notify_new_unassigned`='".intval($_SESSION['new']['notify_new_unassigned'])."' ,
`notify_new_my`='".intval($_SESSION['new']['notify_new_my'])."' ,
`notify_reply_unassigned`='".intval($_SESSION['new']['notify_reply_unassigned'])."' ,