Skip to content

Commit 6ec3f69

Browse files
committedSep 22, 2012
Fix #14677: Summary: developer names should be links
1 parent 5b49186 commit 6ec3f69

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed
 

‎core/summary_api.php

+20-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ function summary_helper_print_row( $p_label, $p_open, $p_resolved, $p_closed, $p
3737
print( '</tr>' );
3838
}
3939

40+
/**
41+
* Returns a string representation of the user, together with a link to the issues
42+
* acted on by the user ( reported, handled or commented on )
43+
*
44+
* @param int $p_user_id
45+
* @return string
46+
*/
47+
function summary_helper_get_developer_label ( $p_user_id ) {
48+
49+
$t_user = string_display_line( user_get_name( $p_user_id ) );
50+
51+
return "<a class='subtle' href='view_all_set.php?type=1&amp;temporary=y
52+
&amp;".FILTER_PROPERTY_REPORTER_ID."=$p_user_id
53+
&amp;".FILTER_PROPERTY_HANDLER_ID."=$p_user_id
54+
&amp;".FILTER_PROPERTY_NOTE_USER_ID."=$p_user_id
55+
&amp;".FILTER_PROPERTY_MATCH_TYPE."=".FILTER_MATCH_ANY."'>$t_user</a>";
56+
57+
}
58+
4059
# Used in summary reports
4160
# this function prints out the summary for the given enum setting
4261
# The enum field name is passed in through $p_enum
@@ -812,7 +831,7 @@ function summary_print_developer_resolution( $p_resolution_enum_string ) {
812831
echo '<tr align="center" ' . helper_alternate_class( $t_row_count ) . '>';
813832
$t_row_count++;
814833
echo '<td>';
815-
echo string_display_line( user_get_name( $t_handler_id ) );
834+
echo summary_helper_get_developer_label( $t_handler_id );
816835
echo '</td>';
817836

818837
# We need to track the percentage of bugs that are considered fixed, as well as

0 commit comments

Comments
 (0)
Please sign in to comment.