From: Glenn H. <thr...@us...> - 2004-09-23 21:22:28
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16775 Modified Files: bug_update_advanced_page.php bug_update_page.php config_defaults_inc.php Log Message: fix for 0004542: Updater cannot reopen issue and cannot close his own issues - re-introduced $g_reopen_bug_threshold fix for 0004537: "Change Status To" shows @@ sometimes made display of allowed status values consistent between bug_*update_page and bug_*view_page Index: bug_update_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_update_page.php,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- bug_update_page.php 22 Sep 2004 08:52:37 -0000 1.82 +++ bug_update_page.php 23 Sep 2004 21:22:11 -0000 1.83 @@ -219,7 +219,9 @@ <?php echo lang_get( 'status' ) ?> </td> <td bgcolor="<?php echo get_status_color( $t_bug->status ) ?>"> - <?php print_status_option_list( 'status', $t_bug->status ) ?> + <?php print_status_option_list( 'status', $t_bug->status, true, + ( $t_bug->reporter_id == auth_get_current_user_id() && + ( ON == config_get( 'allow_reporter_close' ) ) ) ) ?> </td> <?php Index: bug_update_advanced_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_update_advanced_page.php,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- bug_update_advanced_page.php 22 Sep 2004 08:52:37 -0000 1.78 +++ bug_update_advanced_page.php 23 Sep 2004 21:22:11 -0000 1.79 @@ -221,7 +221,9 @@ <?php echo lang_get( 'status' ) ?> </td> <td bgcolor="<?php echo get_status_color( $t_bug->status ) ?>"> - <?php print_status_option_list( 'status', $t_bug->status ) ?> + <?php print_status_option_list( 'status', $t_bug->status, true, + ( $t_bug->reporter_id == auth_get_current_user_id() && + ( ON == config_get( 'allow_reporter_close' ) ) ) ) ?> </td> <?php Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.210 retrieving revision 1.211 diff -u -d -r1.210 -r1.211 --- config_defaults_inc.php 22 Sep 2004 08:58:04 -0000 1.210 +++ config_defaults_inc.php 23 Sep 2004 21:22:11 -0000 1.211 @@ -908,6 +908,9 @@ # status change thresholds $g_update_bug_status_threshold = DEVELOPER; + + # access level needed to re-open bugs + $g_reopen_bug_threshold = DEVELOPER; # this array sets the access thresholds needed to enter each status listed. # if a status is not listed, it falls back to $g_update_bug_status_threshold |