From: B. P. <bpf...@us...> - 2004-09-24 08:42:17
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9203 Modified Files: bug_api.php Log Message: Remove 0004377: $g_bug_submit_status should depends on user level Index: bug_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/bug_api.php,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- bug_api.php 22 Sep 2004 08:59:33 -0000 1.83 +++ bug_api.php 24 Sep 2004 08:42:08 -0000 1.84 @@ -347,29 +347,8 @@ $t_text_id = db_insert_id($t_bug_text_table); # check to see if we want to assign this right off - $t_submit_status_array = config_get( 'bug_submit_status' ); - - if ( true == is_array( $t_submit_status_array ) ) { + $t_status = config_get( 'bug_submit_status' ); - $t_reporter_access_level = user_get_access_level( $c_reporter_id, $c_project_id ); - - $t_submit_status_access_level = array_keys( $t_submit_status_array ); - if ( true == in_array( $t_reporter_access_level, $t_submit_status_access_level ) ) { - # Submit status defined for this access level - $t_status = $t_submit_status_array[$t_reporter_access_level]; - } - else { - # No submit status defined for this access level use default status - $t_status = config_get( 'bug_submit_default_status' ); - } - } - else { - # If the user still use the old 'bug_submit_status' config - # variable, which it's not an array - $t_status = $t_submit_status_array; - } - - # if not assigned, check if it should auto-assigned. if ( 0 == $c_handler_id ) { # if a default user is associated with the category and we know at this point |