From: Glenn H. <thr...@us...> - 2004-09-28 15:03:43
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26659/core Modified Files: html_api.php Log Message: re-fixed 0004602: Mismatch between Assign To dropdown and Assigned To whil updating The original behaviour in bug_update*_page was correct and the dropdown was wrong because it confused the status changes with any other changes. Index: html_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v retrieving revision 1.132 retrieving revision 1.133 diff -u -d -r1.132 -r1.133 --- html_api.php 27 Sep 2004 12:42:19 -0000 1.132 +++ html_api.php 28 Sep 2004 15:03:31 -0000 1.133 @@ -724,19 +724,18 @@ $t_handler_id = bug_get_field( $p_bug_id, 'handler_id' ); $t_current_user_id = auth_get_current_user_id(); $t_new_status = ( ON == config_get( 'auto_set_status_to_assigned' ) ) ? config_get( 'bug_assigned_status' ) : $t_status; - $t_assign_threshold = access_get_status_threshold( $t_new_status, bug_get_field( $p_bug_id, 'project_id' ) ); $t_options = array(); $t_default_assign_to = null; if ( ( $t_handler_id != $t_current_user_id ) && - ( access_has_bug_level( $t_assign_threshold, $p_bug_id, $t_current_user_id ) ) ) { + ( access_has_bug_level( config_get( 'handle_bug_threshold' ), $p_bug_id, $t_current_user_id ) ) ) { $t_options[] = array( $t_current_user_id, '[' . lang_get( 'myself' ) . ']' ); $t_default_assign_to = $t_current_user_id; } if ( ( $t_handler_id != $t_reporter_id ) && user_exists( $t_reporter_id ) && - ( access_has_bug_level( $t_assign_threshold, $p_bug_id, $t_reporter_id ) ) ) { + ( access_has_bug_level( config_get( 'handle_bug_threshold' ), $p_bug_id, $t_reporter_id ) ) ) { $t_options[] = array( $t_reporter_id, '[' . lang_get( 'reporter' ) . ']' ); if ( $t_default_assign_to === null ) { @@ -780,7 +779,7 @@ $t_project_id = bug_get_field( $p_bug_id, 'project_id' ); # 0 means currently selected - print_assign_to_option_list( 0, $t_project_id, $t_assign_threshold ); + print_assign_to_option_list( 0, $t_project_id ); PRINT "</select>"; $t_bug_id = string_attribute( $p_bug_id ); |