Skip to content

Commit

Permalink
bug_report: fix selection of default status and resolution
Browse files Browse the repository at this point in the history
Fixes #14678: Allow resolving a bug when it is reported
  • Loading branch information
rombert committed Sep 23, 2012
1 parent 07c5295 commit d3617a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bug_report_page.php
Expand Up @@ -478,11 +478,13 @@
<select <?php echo helper_get_tab_index() ?> name="status">
<?php
$resolution_options = get_status_option_list(access_get_project_level( $t_project_id),
config_get('default_bug_resolution'), true,
config_get('bug_submit_status'), true,
ON == config_get( 'allow_reporter_close' ), $t_project_id );
foreach ( $resolution_options as $key => $value ) {
?>
<option value="<?php echo $key ?>"><?php echo $value ?></option>
<option value="<?php echo $key ?>" <?php check_selected($key, config_get('bug_submit_status')); ?> >
<?php echo $value ?>
</option>
<?php } ?>
</select>
</td>
Expand All @@ -497,7 +499,7 @@
<td>
<select <?php echo helper_get_tab_index() ?> name="resolution">
<?php
print_enum_string_option_list('resolution', config_get('bug_submit_status'));
print_enum_string_option_list('resolution', config_get('default_bug_resolution'));
?>
</select>
</td>
Expand Down

0 comments on commit d3617a6

Please sign in to comment.