Skip to content

Commit

Permalink
Added bug status to the autogenerated bug view link's tooltip.
Browse files Browse the repository at this point in the history
Modified Files:
 	core/string_api.php


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2199 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
beerfrick committed Jul 28, 2003
1 parent 481d1a8 commit 5c3ec52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.36 2003-04-24 02:24:14 vboctor Exp $
# $Id: string_api.php,v 1.37 2003-07-28 16:26:24 beerfrick Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -282,8 +282,9 @@ function string_get_bug_page( $p_action, $p_user_id=null ) {
# 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 ) {
$t_summary = string_attribute( bug_get_field( $p_bug_id, 'summary' ) );
return '<a href="' . string_get_bug_view_url( $p_bug_id, $p_user_id ) . '" title="' . $t_summary . '">' . bug_format_id( $p_bug_id ) . '</a>';
$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>';
}

# --------------------
Expand Down

0 comments on commit 5c3ec52

Please sign in to comment.