Index: account_page.php =================================================================== --- account_page.php (revision 13708) +++ account_page.php (working copy) @@ -187,7 +187,7 @@ * - + * - + @@ -205,7 +205,7 @@ * - + * - + @@ -110,7 +110,7 @@ * - + @@ -118,7 +118,7 @@ * - + Index: account_prof_menu_page.php =================================================================== --- account_prof_menu_page.php (revision 13708) +++ account_prof_menu_page.php (working copy) @@ -114,7 +114,7 @@ * - + @@ -122,7 +122,7 @@ * - + @@ -130,7 +130,7 @@ * - + Index: bug_change_status_page.php =================================================================== --- bug_change_status_page.php (revision 13708) +++ bug_change_status_page.php (working copy) @@ -291,7 +291,7 @@ * - type="text" id="summary" name="summary" size="105" maxlength="128" value="" /> + type="text" id="summary" name="summary" size="105" maxlength="128" value="" required /> @@ -550,7 +550,7 @@ * - + @@ -613,7 +613,7 @@ - + ', string_display( lang_get_defaulted( $t_def['name'] ) ), ''; echo ''; echo ''; - print_custom_field_input( $t_def, $t_bug_id ); + print_custom_field_input( $t_def, $t_bug_id, $t_def['require_update'] ); echo ''; } } # foreach( $t_related_custom_field_ids as $t_id ) Index: core/cfdefs/cfdef_standard.php =================================================================== --- core/cfdefs/cfdef_standard.php (revision 13708) +++ core/cfdefs/cfdef_standard.php (working copy) @@ -280,9 +280,10 @@ * print_custom_field_input * @param array $p_field_def Custom field definition. * @param mixed $p_custom_field_value Custom field value. + * @param string $p_required The "required" attribute to add to the field * @return void */ -function cfdef_input_list( array $p_field_def, $p_custom_field_value ) { +function cfdef_input_list( array $p_field_def, $p_custom_field_value, $p_required = '' ) { $t_values = explode( '|', custom_field_prepare_possible_values( $p_field_def['possible_values'] ) ); $t_list_size = $t_possible_values_count = count( $t_values ); @@ -295,9 +296,9 @@ } if( $p_field_def['type'] == CUSTOM_FIELD_TYPE_MULTILIST ) { - echo ''; } else { - echo ''; } $t_selected_values = explode( '|', $p_custom_field_value ); @@ -315,9 +316,10 @@ * print_custom_field_input * @param array $p_field_def Custom field definition. * @param mixed $p_custom_field_value Custom field value. + * @param string $p_required The "required" attribute to add to the field * @return void */ -function cfdef_input_checkbox( array $p_field_def, $p_custom_field_value ) { +function cfdef_input_checkbox( array $p_field_def, $p_custom_field_value, $p_required = '' ) { $t_values = explode( '|', custom_field_prepare_possible_values( $p_field_def['possible_values'] ) ); $t_checked_values = explode( '|', $p_custom_field_value ); for( $i = 0; $i < count( $t_values ); $i++ ) { @@ -324,7 +326,7 @@ $t_input_id = 'custom_field_' . $p_field_def['id'] . '_value_' . $i; $t_input_name = 'custom_field_' . $p_field_def['id'] . '[]'; echo '' . "\n"; @@ -336,9 +338,10 @@ * print_custom_field_input * @param array $p_field_def Custom field definition. * @param mixed $p_custom_field_value Custom field value. + * @param string $p_required The "required" attribute to add to the field * @return void */ -function cfdef_input_radio( array $p_field_def, $p_custom_field_value ) { +function cfdef_input_radio( array $p_field_def, $p_custom_field_value, $p_required = '' ) { $t_values = explode( '|', custom_field_prepare_possible_values( $p_field_def['possible_values'] ) ); $t_len = strlen( $p_custom_field_value ); @@ -352,7 +355,7 @@ $t_input_id = 'custom_field_' . $p_field_def['id'] . '_value_' . $i; $t_input_name = 'custom_field_' . $p_field_def['id']; echo '