From 905abc91fb63261f92b070298e19e5d3416d1a52 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Gul=C3=A1csi=20Tam=C3=A1s?= Date: Tue, 26 May 2009 21:05:15 +0200 Subject: [PATCH] let filter_get_bug_rows return the last updater, too diff --git a/core/filter_api.php b/core/filter_api.php index 5aa5bbb..88ab3ce 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -1851,6 +1851,20 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p if( 0 == $p_bug_count ) { return array(); } + + # GT: + $t_user_table = config_get('mantis_user_table'); + $t_select_clauses[] = + "(SELECT COALESCE(MAX(D.username), '') last_submitter + FROM $t_user_table D, $t_bugnote_table C + WHERE D.id = C.reporter_id AND + C.id = (SELECT MAX(B.id) + FROM $t_bugnote_table B + WHERE B.bug_id = $t_bug_table.id) + ) last_submitter"; + $t_query_clauses['select'] = $t_select_clauses; + # :GT + $p_per_page = filter_per_page( $t_filter, $p_bug_count, $p_per_page ); $p_page_count = filter_page_count( $p_bug_count, $p_per_page ); $p_page_number = filter_valid_page_number( $p_page_number, $p_page_count ); @@ -3703,7 +3717,7 @@ function print_filter_note_user_id() { check_selected( $t_filter[FILTER_PROPERTY_NOTE_USER_ID], META_FILTER_MYSELF ); echo '>[' . lang_get( 'myself' ) . ']'; } - + print_assign_to_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] ); } ?> diff --git a/core/my_view_inc.php b/core/my_view_inc.php index a4b8020..d4232fc 100644 --- a/core/my_view_inc.php +++ b/core/my_view_inc.php @@ -512,9 +512,9 @@ echo "($v_start - $v_end / $t_bug_count)"; } if( $v_last_updated > strtotime( '-' . $t_filter[FILTER_PROPERTY_HIGHLIGHT_CHANGED] . ' hours' ) ) { - echo ' - ' . $t_last_updated . ''; + echo ' - ' . $t_last_updated . ' - {' . $v_last_updater . '}'; } else { - echo ' - ' . $t_last_updated; + echo ' - ' . $t_last_updated . ' - {' . $v_last_updater . '}'; } ?> -- 1.6.0.4