Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9734
Modified Files:
bug_change_status_page.php
Log Message:
fix for 0005047: How let a viewer reopen an issue ( any issue )?
fix for 0005314: updater cannot reopen issue even though
$g_reopen_bug_threshold = UPDATER;
Index: bug_change_status_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_change_status_page.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- bug_change_status_page.php 12 Feb 2005 20:01:03 -0000 1.18
+++ bug_change_status_page.php 18 Mar 2005 03:40:19 -0000 1.19
@@ -22,11 +22,14 @@
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
$f_new_status = gpc_get_int( 'new_status' );
-
+ $f_reopen_flag = gpc_get_int( 'reopen_flag', OFF );
+
if ( ! ( ( access_has_bug_level( access_get_status_threshold(
$f_new_status, bug_get_field( $f_bug_id, 'project_id' ) ), $f_bug_id ) ) ||
( ( bug_get_field( $f_bug_id, 'reporter_id' )
== auth_get_current_user_id() ) &&
( ( ON == config_get(
'allow_reporter_reopen' ) ) ||
- ( ON ==
config_get( 'allow_reporter_close' ) ) ) ) ) ) {
+ ( ON ==
config_get( 'allow_reporter_close' ) ) ) ) ||
+ ( ( ON == $f_reopen_flag ) && (
access_has_bug_level( config_get( 'reopen_bug_threshold' ), $f_bug_id ) ) )
+ ) ) {
access_denied();
}
@@ -42,7 +45,9 @@
}
if ( $f_handler_id != NO_USER ) {
- access_ensure_bug_level( config_get(
'handle_bug_threshold' ), $f_bug_id, $f_handler_id );
+ if ( !access_has_bug_level( config_get( 'handle_bug_threshold' ),
$f_bug_id, $f_handler_id ) ) {
+ trigger_error( ERROR_HANDLER_ACCESS_TOO_LOW,
ERROR );
+ }
if ( $t_bug_sponsored ) {
if ( !access_has_bug_level( config_get(
'handle_sponsored_bugs_threshold' ), $f_bug_id, $f_handler_id ) ) {
@@ -222,8 +227,7 @@
<?php } ?>
<?php
- if ( ( bug_get_field( $f_bug_id, 'status' ) == $t_resolved )
- && ( $f_new_status == config_get( 'bug_reopen_status' )
) ) {
+ if ( ON == $f_reopen_flag ) {
# bug was re-opened
printf(" <input type=\"hidden\" name=\"resolution\"
value=\"%s\" />\n", config_get( 'bug_reopen_resolution' ) );
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|