From 50f5ce45966f64b92a02b4d4553d1653fad7032a Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 22 Dec 2014 00:12:13 -0500 Subject: [PATCH] #91 Add new custom field options to the array of possible choices --- admin/admin_settings.php | 2 -- admin/admin_settings_save.php | 2 +- admin/options.php | 6 ------ language/en/text.php | 4 ---- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/admin/admin_settings.php b/admin/admin_settings.php index 4a2d2184..e823f8e8 100644 --- a/admin/admin_settings.php +++ b/admin/admin_settings.php @@ -1239,8 +1239,6 @@ if ( defined('HESK_DEMO') ) - - diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php index d409ba78..4f26f76b 100644 --- a/admin/admin_settings_save.php +++ b/admin/admin_settings_save.php @@ -390,7 +390,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'))) + if (!in_array($set['custom_fields'][$this_field]['type'],array('text','textarea','select','radio','checkbox','date','multiselect'))) { $set['custom_fields'][$this_field]['type'] = 'text'; } diff --git a/admin/options.php b/admin/options.php index ca5d37f8..95d05481 100644 --- a/admin/options.php +++ b/admin/options.php @@ -268,12 +268,6 @@ switch ($type) case 'date': echo '

'.$hesklang['date_custom_field_text'].'

'; break; - case 'time': - echo '

'.$hesklang['time_custom_field_text'].'

'; - break; - case 'datetime': - echo '

'.$hesklang['datetime_custom_field_text'].'

'; - break; case 'multiselect': $options=str_replace('#HESK#',"\n",$query); echo ' diff --git a/language/en/text.php b/language/en/text.php index 335dbc63..9d281c77 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -24,10 +24,6 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------'; // ADDED OR MODIFIED IN Mods For HESK 2.0.0 $hesklang['date_custom_field'] = 'Date'; $hesklang['date_custom_field_text'] = 'No options for this custom field type.'; -$hesklang['time_custom_field'] = 'Time'; -$hesklang['time_custom_field_text'] = 'No options for this custom field type.'; -$hesklang['datetime_custom_field'] = 'Date and time'; -$hesklang['datetime_custom_field_text'] = 'No options for this custom field type.'; $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!';