Skip to content

Commit

Permalink
Fix missing tooltips on issue Ids
Browse files Browse the repository at this point in the history
This is a partial revert of 4d8ce6f
(see issue #21112).

Hiding the tooltip in My View page is now done using print_bug_link()'s
$p_detail_info parameter.

Fixes #21721
  • Loading branch information
dregad committed Sep 30, 2016
1 parent 4bacd71 commit 0476be0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/string_api.php
Expand Up @@ -649,7 +649,11 @@ function string_get_bug_view_link( $p_bug_id, $p_detail_info = true, $p_fqdn = f
}
$t_link .= string_get_bug_view_url( $p_bug_id ) . '"';
if( $p_detail_info ) {
$t_summary = string_attribute( bug_get_field( $p_bug_id, 'summary' ) );
$t_project_id = bug_get_field( $p_bug_id, 'project_id' );
$t_status = string_attribute( get_enum_element( 'status', bug_get_field( $p_bug_id, 'status' ), $t_project_id ) );
$t_link .= ' title="[' . $t_status . '] ' . $t_summary . '"';

$t_resolved = bug_get_field( $p_bug_id, 'status' ) >= config_get( 'bug_resolved_status_threshold', null, null, $t_project_id );
if( $t_resolved ) {
$t_link .= ' class="resolved"';
Expand Down
2 changes: 1 addition & 1 deletion my_view_inc.php
Expand Up @@ -360,7 +360,7 @@
# -- Bug ID and details link + Pencil shortcut --?>
<td class="nowrap width-13 my-buglist-id">
<?php
print_bug_link( $t_bug->id );
print_bug_link( $t_bug->id, false );

echo '<br />';

Expand Down

0 comments on commit 0476be0

Please sign in to comment.