diff --git a/admin/admin_settings.php b/admin/admin_settings.php index fad73f97..ae57b48b 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -1792,7 +1792,7 @@ if ( defined('HESK_DEMO') )
@@ -1807,7 +1807,7 @@ if ( defined('HESK_DEMO') )
@@ -1821,7 +1821,7 @@ if ( defined('HESK_DEMO') )
@@ -1839,7 +1839,7 @@ if ( defined('HESK_DEMO') )
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php index 4f26f76b..857397e2 100644 --- a/admin/admin_settings_save.php +++ b/admin/admin_settings_save.php @@ -538,6 +538,7 @@ $set['hesk_version'] = $hesk_settings['hesk_version']; $set['rtl'] = empty($_POST['rtl']) ? 0 : 1; $set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1; $set['maintenance-mode'] = empty($_POST['maintenance-mode']) ? 0 : 1; +$set['custom-field-setting'] = empty($_POST['custom-field-setting']) ? 0 : 1; $set['navbarBackgroundColor'] = hesk_input(hesk_POST('navbarBackgroundColor')); $set['navbarBrandColor'] = hesk_input(hesk_POST('navbarBrandColor')); $set['navbarBrandHoverColor'] = hesk_input(hesk_POST('navbarBrandHoverColor')); @@ -571,7 +572,10 @@ $modsForHesk_settings[\'rtl\'] = '.$set['rtl'].'; $modsForHesk_settings[\'show_icons\'] = '.$set['show-icons'].'; //-- Set this to 1 to enable maintenance mode -$modsForHesk_settings[\'maintenance_mode\'] = '.$set['maintenance-mode'].';'; +$modsForHesk_settings[\'maintenance_mode\'] = '.$set['maintenance-mode'].'; + +//-- Set this to 1 to enable custom field names as keys +$modsForHesk_settings[\'custom_field_setting\'] = '.$set['custom-field-setting'].';'; // Write the file if ( ! file_put_contents(HESK_PATH . 'modsForHesk_settings.inc.php', $modsForHesk_file_content) ) diff --git a/js/modsForHesk-javascript.js b/js/modsForHesk-javascript.js index 75ce8f12..370ec620 100644 --- a/js/modsForHesk-javascript.js +++ b/js/modsForHesk-javascript.js @@ -6,7 +6,8 @@ var loadJquery = function() //-- Active popovers $('[data-toggle="popover"]').popover({ - trigger: 'hover' + trigger: 'hover', + container: 'body' }); //-- Activate jQuery's date picker diff --git a/language/en/text.php b/language/en/text.php index 53176dc9..e679ae16 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -28,7 +28,8 @@ $hesklang['multiple_select_custom_field'] = 'Multiple Select box'; $hesklang['multiple_select_custom_field_text'] = 'Options for this multi-select box, enter one option per line (each line will be a choice your customers can choose from). You need to enter at least two options!'; $hesklang['date_format'] = 'Date must be in YYYY-MM-DD format.'; $hesklang['custom_field_setting'] = 'Multilanguage support'; -$hesklang['custom_field_setting_help'] = 'Enabling this setting will use the name of the custom field as the language file\'s key, rather than the direct name itself. This will allow for translatable custom field.'; +$hesklang['custom_field_setting_help'] = 'Enabling this setting will use the name of the custom field as the language + file\'s key, rather than the direct name itself. This allows the custom field to be translated into different languages.'; $hesklang['enable_custom_field_language'] = 'Enable multilanguage support'; // ADDED OR MODIFIED IN Mods For HESK 1.6.0