View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0021947 | mantisbt | ui | public | 2016-11-23 15:38 | 2017-01-27 13:48 |
| Reporter | mcmo | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 2.0.0-rc.1 | ||||
| Summary | 0021947: Required custom fields whose type is radio or checkbox do not display with a red asterisk. | ||||
| Description | I have checked the styles using the Chrome developer tools and that confirms that the radio or checkbox fields do not have the class "required". | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
this is similar to 0021886 |
|
|
Requiring checkbox input is not possible. Requiring radio input should be possible, but offering a radio box without a selected default value is no good practice. |
|
|
I found a solution that also fixes 0021886. see attached patch file patch for 21886 and 21947.txt (838 bytes)
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/<html>bug_report_page.php (<b>02-Nov-2016 14:19:33</b>)</html>
+++ b/<html><b>Current File</b></html>
@@ -601,11 +601,9 @@
?>
<tr>
<th class="category">
- <?php if( $t_def['type'] != CUSTOM_FIELD_TYPE_RADIO && $t_def['type'] != CUSTOM_FIELD_TYPE_CHECKBOX ) { ?>
<label for="custom_field_<?php echo string_attribute( $t_def['id'] ) ?>"<?php if( $t_def['require_report'] ) {?> class="required"<?php } ?>>
<?php echo string_display( lang_get_defaulted( $t_def['name'] ) ) ?>
</label>
- <?php } else { echo string_display( lang_get_defaulted( $t_def['name'] ) ); } ?>
</th>
<td>
<?php print_custom_field_input( $t_def, ( $f_master_bug_id === 0 ) ? null : $f_master_bug_id ) ?>
|
|
|
when there are several options for a checkbox input, it is possible to make it mandatory; I agree that with one option only, requiring it makes no sense. |
|