Skip to content

Commit d3617a6

Browse files
committedSep 23, 2012
bug_report: fix selection of default status and resolution
Fixes #14678: Allow resolving a bug when it is reported
1 parent 07c5295 commit d3617a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎bug_report_page.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,13 @@
478478
<select <?php echo helper_get_tab_index() ?> name="status">
479479
<?php
480480
$resolution_options = get_status_option_list(access_get_project_level( $t_project_id),
481-
config_get('default_bug_resolution'), true,
481+
config_get('bug_submit_status'), true,
482482
ON == config_get( 'allow_reporter_close' ), $t_project_id );
483483
foreach ( $resolution_options as $key => $value ) {
484484
?>
485-
<option value="<?php echo $key ?>"><?php echo $value ?></option>
485+
<option value="<?php echo $key ?>" <?php check_selected($key, config_get('bug_submit_status')); ?> >
486+
<?php echo $value ?>
487+
</option>
486488
<?php } ?>
487489
</select>
488490
</td>
@@ -497,7 +499,7 @@
497499
<td>
498500
<select <?php echo helper_get_tab_index() ?> name="resolution">
499501
<?php
500-
print_enum_string_option_list('resolution', config_get('bug_submit_status'));
502+
print_enum_string_option_list('resolution', config_get('default_bug_resolution'));
501503
?>
502504
</select>
503505
</td>

0 commit comments

Comments
 (0)
Please sign in to comment.