. #------------------------------ # $Revision: 2643 $ # $Author: al $ # $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $ #------------------------------ # This include file prints out the list of bugnotes attached to the bug # $f_bug_id must be set and be set to the bug id $t_core_path = config_get( 'core_path' ); require_once( $t_core_path.'current_user_api.php' ); # grab the user id currently logged in $t_user_id = auth_get_current_user_id(); if ( !access_has_bug_level( config_get( 'private_bugnote_threshold' ), $f_bug_id ) ) { $t_restriction = 'AND ( view_state=' . VS_PUBLIC . ' OR reporter_id = ' . $t_user_id . ')'; } else { $t_restriction = ''; } $t_bugnote_table = config_get( 'mantis_bugnote_table' ); $t_bugnote_text_table = config_get( 'mantis_bugnote_text_table' ); $t_bugnote_order = current_user_get_pref( 'bugnote_order' ); # get the bugnote data $query = "SELECT * FROM $t_bugnote_table WHERE bug_id='$f_bug_id' $t_restriction ORDER BY date_submitted $t_bugnote_order, id $t_bugnote_order"; $result = db_query( $query ); $num_notes = db_num_rows( $result ); ?>
0 && access_has_bug_level( config_get( 'time_tracking_view_threshold' ), $f_bug_id ) ) { echo ''; } } # end else ?>
()
[ ]

'.lang_get( 'edited_on').' '.$v3_last_modified.'
'; } ?>
' . lang_get( 'reminder_sent_to' ) . ': '; $v3_note_attr = substr( $v3_note_attr, 1, strlen( $v3_note_attr ) - 2 ); $t_to = array(); foreach ( explode( '|', $v3_note_attr ) as $t_recipient ) { $t_to[] = prepare_user_name( $t_recipient ); } echo implode( ', ', $t_to ) . '

'; case TIME_TRACKING: if ( access_has_bug_level( config_get( 'time_tracking_view_threshold' ), $f_bug_id ) ) { echo '', $v3_time_tracking_hhmm, '

'; } break; } echo $v3_note; ?>
', sprintf ( lang_get( 'total_time_for_issue' ), db_minutes_to_hhmm( $t_total_time ) ), '