From 91a25a942e9396a62a19256a6e6d7f9e36dd1cfb Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 26 May 2015 22:04:05 -0400 Subject: [PATCH] Allow staff to set location --- admin/admin_submit_ticket.php | 3 +++ admin/new_ticket.php | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/admin/admin_submit_ticket.php b/admin/admin_submit_ticket.php index 2ba24c9b..34d9dd92 100644 --- a/admin/admin_submit_ticket.php +++ b/admin/admin_submit_ticket.php @@ -272,6 +272,9 @@ if ($hesk_settings['attachments']['use'] && !empty($attachments)) $tmpvar['message']=hesk_makeURL($tmpvar['message']); $tmpvar['message']=nl2br($tmpvar['message']); +$tmpvar['latitude'] = hesk_POST('latitude', 'E-4'); +$tmpvar['longitude'] = hesk_POST('longitude', 'E-4'); + // Insert ticket to database $ticket = hesk_newTicket($tmpvar); diff --git a/admin/new_ticket.php b/admin/new_ticket.php index 577eabfd..b52bb1d6 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -994,11 +994,25 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); +
+ +
+

+
+
+
+
+
- + + + +
@@ -1006,6 +1020,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); + requestUserLocation("'.$hesklang['your_current_location'].'", "'.$hesklang['unable_to_determine_location'].'"); + + '; +} + hesk_cleanSessionVars('iserror'); hesk_cleanSessionVars('isnotice');