Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -924,13 +924,13 @@ |
925 | 925 | } else { |
926 | 926 | $sfgJSValidationCalls[] = "validate_mandatory_field(\"input_$sfgFieldNum\", \"info_$sfgFieldNum\")"; |
927 | 927 | } |
928 | | - } elseif (($form_field->template_field->is_list && $form_field->template_field->field_type == 'enumeration' && $input_type != 'listbox') || ($input_type == 'checkboxes')) { |
929 | | - $sfgJSValidationCalls[] = "validate_mandatory_checkboxes('$input_id', '$info_id')"; |
930 | 928 | } elseif ($input_type == 'radiobutton' || $input_type == 'category') { |
931 | 929 | // only add this if there's a "None" option |
932 | 930 | if (empty($default_value)) { |
933 | 931 | $sfgJSValidationCalls[] = "validate_mandatory_radiobutton('$input_id', '$info_id')"; |
934 | 932 | } |
| 933 | + } elseif (($form_field->template_field->is_list && $form_field->template_field->field_type == 'enumeration' && $input_type != 'listbox') || ($input_type == 'checkboxes')) { |
| 934 | + $sfgJSValidationCalls[] = "validate_mandatory_checkboxes('$input_id', '$info_id')"; |
935 | 935 | } else { |
936 | 936 | $sfgJSValidationCalls[] = "validate_mandatory_field('$input_id', '$info_id')"; |
937 | 937 | } |