Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6bd719a

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 9232d16 commit 6bd719a

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
@@ -425,11 +425,13 @@
425425
<select <?php echo helper_get_tab_index() ?> name="status">
426426
<?php
427427
$resolution_options = get_status_option_list(access_get_project_level( $t_project_id),
428-
config_get('default_bug_resolution'), true,
428+
config_get('bug_submit_status'), true,
429429
ON == config_get( 'allow_reporter_close' ), $t_project_id );
430430
foreach ( $resolution_options as $key => $value ) {
431431
?>
432-
<option value="<?php echo $key ?>"><?php echo $value ?></option>
432+
<option value="<?php echo $key ?>" <?php check_selected($key, config_get('bug_submit_status')); ?> >
433+
<?php echo $value ?>
434+
</option>
433435
<?php } ?>
434436
</select>
435437
</td>
@@ -444,7 +446,7 @@
444446
<td>
445447
<select <?php echo helper_get_tab_index() ?> name="resolution">
446448
<?php
447-
print_enum_string_option_list('resolution', config_get('bug_submit_status'));
449+
print_enum_string_option_list('resolution', config_get('default_bug_resolution'));
448450
?>
449451
</select>
450452
</td>

0 commit comments

Comments
 (0)
Please sign in to comment.