logo       

mantisbt bug_change_status_page.php,1.18,1.19: msg#00016

Subject: mantisbt bug_change_status_page.php,1.18,1.19
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe