diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php
index 498dc3f2..52aa1048 100644
--- a/admin/admin_settings_save.php
+++ b/admin/admin_settings_save.php
@@ -506,6 +506,7 @@ $set['use_bootstrap_theme'] = empty($_POST['use_bootstrap_theme']) ? 0 : 1;
$set['new_kb_article_visibility'] = hesk_checkMinMax( intval( hesk_POST('new_kb_article_visibility') ) , 0, 2, 2);
$set['mfh_attachments'] = empty($_POST['email_attachments']) ? 0 : 1;
$set['show_number_merged'] = empty($_POST['show_number_merged']) ? 0 : 1;
+$set['request_location'] = empty($_POST['request_location']) ? 0 : 1;
if ($set['customer-email-verification-required'])
{
@@ -568,7 +569,10 @@ $modsForHesk_settings[\'new_kb_article_visibility\'] = '.$set['new_kb_article_vi
$modsForHesk_settings[\'attachments\'] = '.$set['mfh_attachments'].';
//-- Setting for showing number of merged tickets in the ticket search screen. 0 = Disable, 1 = Enable
-$modsForHesk_settings[\'show_number_merged\'] = '.$set['show_number_merged'].';';
+$modsForHesk_settings[\'show_number_merged\'] = '.$set['show_number_merged'].';
+
+//-- Setting for requesting user\'s location. 0 = Disable, 1 = Enable
+$modsForHesk_settings[\'request_location\'] = '.$set['request_location'].';';
// Write the file
if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) )
diff --git a/install/mods-for-hesk/sql/installSql.php b/install/mods-for-hesk/sql/installSql.php
index b39ef049..bd06df5d 100644
--- a/install/mods-for-hesk/sql/installSql.php
+++ b/install/mods-for-hesk/sql/installSql.php
@@ -464,6 +464,13 @@ function execute230FileUpdate() {
//-- Setting for showing number of merged tickets in the ticket search screen. 0 = Disable, 1 = Enable
$modsForHesk_settings[\'show_number_merged\'] = 1;';
}
+ if (strpos($file, '$modsForHesk_settings[\'request_location\']') === false)
+ {
+ $file .= '
+
+ //-- Setting for requesting user\'s location. 0 = Disable, 1 = Enable
+$modsForHesk_settings[\'request_location\'] = 0';
+ }
return file_put_contents(HESK_PATH.'modsForHesk_settings.inc.php', $file);
}
diff --git a/language/en/text.php b/language/en/text.php
index 0810af06..f4a598c2 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -46,6 +46,9 @@ $hesklang['latest_top_on_home_help'] = 'Select YES to display the top and latest
Otherwise, a link to the knowledgebase will appear on the home page.';
$hesklang['location_unavailable'] = "Customer's location is unavailable. Click the crosshair for more information.";
$hesklang['click_for_map'] = "Click the crosshair to see a map of the ticket's location";
+$hesklang['request_user_location'] = "Request Location";
+$hesklang['request_user_location_help'] = "If enabled, the help desk will ask for the customer's location, allowing staff to
+ see a map of the customer's location when they created the ticket.";
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)
diff --git a/modsForHesk_settings.inc.php b/modsForHesk_settings.inc.php
index 8471bd0b..3406ac42 100644
--- a/modsForHesk_settings.inc.php
+++ b/modsForHesk_settings.inc.php
@@ -43,4 +43,7 @@ $modsForHesk_settings['new_kb_article_visibility'] = 0;
$modsForHesk_settings['attachments'] = 0;
//-- Setting for showing number of merged tickets in the ticket search screen. 0 = Disable, 1 = Enable
-$modsForHesk_settings['show_number_merged'] = 1;
\ No newline at end of file
+$modsForHesk_settings['show_number_merged'] = 1;
+
+//-- Setting for requesting user's location. 0 = Disable, 1 = Enable
+$modsForHesk_settings['request_location'] = 0;
\ No newline at end of file