From: Andre E. <in...@us...> - 2004-05-26 05:25:43
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9365/core Modified Files: print_api.php string_api.php Log Message: - Fix #3878: Table cells are centered in Internet Explorer. - Also removed title="" from bug link on the view issues page, since it's totally redundant there and costs a lot in terms of HTML page size. Index: string_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/string_api.php,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- string_api.php 23 May 2004 13:50:44 -0000 1.49 +++ string_api.php 26 May 2004 05:25:32 -0000 1.50 @@ -309,14 +309,22 @@ # -------------------- # return an href anchor that links to a bug VIEW page for the given bug # account for the user preference and site override - function string_get_bug_view_link( $p_bug_id, $p_user_id = null ) { + function string_get_bug_view_link( $p_bug_id, $p_user_id = null, $p_detail_info = true ) { + $t_link = ""; + if ( bug_exists( $p_bug_id ) ) { $t_summary = string_attribute( bug_get_field( $p_bug_id, 'summary' ) ); $t_status = string_attribute( get_enum_element( 'status', bug_get_field( $p_bug_id, 'status' ) ) ); - return '<a href="' . string_get_bug_view_url( $p_bug_id, $p_user_id ) . '" title="[' . $t_status . '] ' . $t_summary . '">' . bug_format_id( $p_bug_id ) . '</a>'; + $t_link = '<a href="' . string_get_bug_view_url( $p_bug_id, $p_user_id ) . '"'; + if ( $p_detail_info ) { + $t_link .= ' title="[' . $t_status . '] ' . $t_summary . '"'; + } + $t_link .= '>' . bug_format_id( $p_bug_id ) . '</a>'; } else { - return bug_format_id( $p_bug_id ); + $t_link = bug_format_id( $p_bug_id ); } + + return $t_link; } # -------------------- Index: print_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- print_api.php 26 May 2004 05:03:53 -0000 1.82 +++ print_api.php 26 May 2004 05:25:32 -0000 1.83 @@ -749,8 +749,8 @@ # -------------------- # prints a link to VIEW a bug given an ID # account for the user preference and site override - function print_bug_link( $p_bug_id ) { - PRINT string_get_bug_view_link( $p_bug_id ); + function print_bug_link( $p_bug_id, $p_detail_info = true ) { + PRINT string_get_bug_view_link( $p_bug_id, null, $p_detail_info ); } # -------------------- |