diff --git a/core/history_api.php b/core/history_api.php index a55d979838..e40b328e29 100644 --- a/core/history_api.php +++ b/core/history_api.php @@ -287,7 +287,6 @@ function history_get_range_result( $p_bug_id = null, $p_start_time = null, $p_en function history_get_event_from_row( $p_result, $p_user_id = null, $p_check_access_to_issue = true ) { static $s_bug_visible = array(); $t_user_id = ( null === $p_user_id ) ? auth_get_current_user_id() : $p_user_id; - $t_project_id = helper_get_current_project(); while ( $t_row = db_fetch_array( $p_result ) ) { extract( $t_row, EXTR_PREFIX_ALL, 'v' ); @@ -297,11 +296,6 @@ function history_get_event_from_row( $p_result, $p_user_id = null, $p_check_acce continue; } - # Make sure the entry belongs to current project. - if ( $t_project_id != ALL_PROJECTS && $t_project_id != bug_get_field( $v_bug_id, 'project_id' ) ) { - continue; - } - if( $p_check_access_to_issue ) { if( !isset( $s_bug_visible[$v_bug_id] ) ) { $s_bug_visible[$v_bug_id] = access_has_bug_level( VIEWER, $v_bug_id );