diff --git a/index.php b/index.php index bde235f1..1ee52dd3 100644 --- a/index.php +++ b/index.php @@ -187,7 +187,7 @@ function print_add_ticket()
+ enctype="multipart/form-data" onsubmit="return validateRichText();">

'; + echo '
'; } - echo '
'; + echo '
'; break; /* Large text box */ @@ -469,6 +470,7 @@ function print_add_ticket() break; case 'multiselect': + $validator = $required == 'required' ? 'data-multiselect="' . $k . '"' : ''; //Clean up multiple dashes or whitespaces $formattedId = preg_replace("/[\s-]+/", " ", $v['name']); $formattedId = preg_replace("/[\s_]/", "-", $formattedId); @@ -476,7 +478,7 @@ function print_add_ticket() $cls = in_array($k, $_SESSION['iserror']) ? ' class="isError" ' : ''; echo '
-
'; $options = explode('#HESK#', $v['value']); @@ -494,9 +496,10 @@ function print_add_ticket() echo '
- - + +
+
'; break; @@ -775,6 +778,7 @@ function print_add_ticket() /* Checkbox */ case 'checkbox': + $validator = $required == 'required' ? 'data-checkbox="' . $k . '"' : ''; //Clean up multiple dashes or whitespaces $formattedId = preg_replace("/[\s-]+/", " ", $v['name']); $formattedId = preg_replace("/[\s_]/", "-", $formattedId); @@ -792,9 +796,9 @@ function print_add_ticket() $checked = ''; } - echo '
'; + echo '
'; } - echo ''; + echo '
<'; break; /* Large text box */ @@ -818,6 +822,7 @@ function print_add_ticket() break; case 'multiselect': + $validator = $required == 'required' ? 'data-multiselect="' . $k . '"' : ''; //Clean up multiple dashes or whitespaces $formattedId = preg_replace("/[\s-]+/", " ", $v['name']); $formattedId = preg_replace("/[\s_]/", "-", $formattedId); @@ -825,7 +830,7 @@ function print_add_ticket() $cls = in_array($k, $_SESSION['iserror']) ? ' class="isError" ' : ''; echo '
-
'; $options = explode('#HESK#', $v['value']); @@ -843,8 +848,8 @@ function print_add_ticket() echo '
- - + +
'; break; @@ -1172,8 +1177,31 @@ function print_add_ticket() - + diff --git a/language/en/text.php b/language/en/text.php index a08553f6..ac9bda98 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -39,6 +39,7 @@ $hesklang['readonly_custom_field_help'] = 'This input is the same as a text fiel $hesklang['navbar_title_url'] = 'Navbar Title URL'; $hesklang['navbar_title_url_help'] = 'Enter the URL you wish to use when a customer (or staff) clicks on the help desk title on the top-left corner of the screen. The URL must begin with http:// or https://.'; $hesklang['this_field_is_required'] = 'This field is required'; +$hesklang['select_at_least_one_value'] = 'Please select at least one value'; // ADDED OR MODIFIED IN Mods for HESK 2.4.0 $hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';