diff --git a/admin/admin_settings.php b/admin/admin_settings.php index b474eb2b..71090595 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -1269,6 +1269,7 @@ if ( defined('HESK_DEMO') ) +
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php index 68e1a293..6e8a8e14 100644 --- a/admin/admin_settings_save.php +++ b/admin/admin_settings_save.php @@ -478,7 +478,7 @@ for ($i=1;$i<=20;$i++) $set['custom_fields'][$this_field]['maxlen'] = intval( hesk_POST('s_custom'.$i.'_maxlen', 255) ); $set['custom_fields'][$this_field]['value'] = hesk_input( hesk_POST('s_custom'.$i.'_val') ); - if (!in_array($set['custom_fields'][$this_field]['type'],array('text','textarea','select','radio','checkbox','date','multiselect'))) + if (!in_array($set['custom_fields'][$this_field]['type'],array('text','textarea','select','radio','checkbox','date','multiselect','email'))) { $set['custom_fields'][$this_field]['type'] = 'text'; } diff --git a/admin/options.php b/admin/options.php index ba42c6ef..e0805065 100644 --- a/admin/options.php +++ b/admin/options.php @@ -314,6 +314,33 @@ switch ($type)

'; break; + case 'email': + $ccSelected = $query == 'cc' ? 'selected="selected"' : ''; + $bccSelected = $query == 'bcc' ? 'selected="selected"' : ''; + echo ' + +

'.$hesklang['email_custom_field_help'].'

+ + + + + +
'.$hesklang['email_custom_field_label'].': + +
+

+ '; + break; default: die('Invalid type'); } diff --git a/language/en/text.php b/language/en/text.php index 5e0bd7c1..621f524a 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -28,6 +28,11 @@ $hesklang['and_change_status_to'] = 'and change status to'; // Used in combinati $hesklang['closed_title'] = 'Closed'; $hesklang['image'] = 'Image'; // Used for alt tag $hesklang['close_modal'] = 'Close'; +$hesklang['email_custom_field'] = 'Email Address'; +$hesklang['email_custom_field_help'] = 'Allows the input of an email address. Similar to a text field, however the email address(es) will be added to all emails for this ticket, in the Cc or Bcc section, depending on the option selected.'; +$hesklang['email_custom_field_label'] = 'Address Type'; +$hesklang['cc'] = 'Cc:'; +$hesklang['bcc'] = 'Bcc:'; // ADDED OR MODIFIED IN Mods For HESK 1.7.0