. #------------------------------ # $Revision: 2643 $ # $Author: al $ # $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $ #------------------------------ require_once( 'core.php' ); $t_core_path = config_get( 'core_path' ); require_once( $t_core_path.'bug_api.php' ); require_once( $t_core_path.'custom_field_api.php' ); require_once( $t_core_path.'file_api.php' ); require_once( $t_core_path.'compress_api.php' ); require_once( $t_core_path.'date_api.php' ); require_once( $t_core_path.'relationship_api.php' ); require_once( $t_core_path.'last_visited_api.php' ); require_once( $t_core_path.'tag_api.php' ); $f_bug_id = gpc_get_int( 'bug_id' ); $f_history = gpc_get_bool( 'history', config_get( 'history_default_visible' ) ); bug_ensure_exists( $f_bug_id ); access_ensure_bug_level( VIEWER, $f_bug_id ); $t_bug = bug_prepare_display( bug_get( $f_bug_id, true ) ); if( $t_bug->project_id != helper_get_current_project() ) { # in case the current project is not the same project of the bug we are viewing... # ... override the current project. This to avoid problems with categories and handlers lists etc. $g_project_override = $t_bug->project_id; } if ( SIMPLE_ONLY == config_get( 'show_view' ) ) { print_header_redirect ( 'bug_view_page.php?bug_id=' . $f_bug_id ); } compress_enable(); html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ); html_page_top2(); $t_access_level_needed = config_get( 'view_history_threshold' ); $t_can_view_history = access_has_bug_level( $t_access_level_needed, $f_bug_id ); $t_bugslist = gpc_get_cookie( config_get( 'bug_list_cookie' ), false ); ?>
> > > > > ', lang_get( 'duplicate_id' ), ' '; echo ''; } else { # spacer echo ''; } ?> > > project_id ) ) > 0 ) ); if ( $t_show_version ) { ?> > > > > > > > project_id ); foreach( $t_related_custom_field_ids as $t_id ) { if ( !custom_field_has_read_access( $t_id, $f_bug_id ) ) { continue; } # has read access $t_custom_fields_found = true; $t_def = custom_field_get_definition( $t_id ); ?> > reporter_id == auth_get_current_user_id() ) || access_has_bug_level( config_get( 'view_attachments_threshold' ), $f_bug_id ); if ( $t_show_attachments ) { ?> >
project_id, 'name' ) ); echo "[$t_project_name] $t_bug->category"; ?> severity ) ?> reproducibility ) ?> date_submitted ) ?> last_updated ) ?>
reporter_id, $f_bug_id ) ?> view_state ) ?>  
handler_id, $f_bug_id ); } ?>
priority ) ?> resolution ) ?> platform ?>
status ) ?> '; print_duplicate_id( $t_bug->duplicate_id ); echo '  os ?>
projection ) ?>   os_build ?>
eta ) ?> fixed_in_version ?> version ?> build ?>
  target_version ?>   build?>
description ?>
steps_to_reproduce ?>
additional_information ?>