From 2e6e7c71d5f0161a738bb6943ff8b6cfc7bf4719 Mon Sep 17 00:00:00 2001 From: Frank Rodgers Date: Fri, 30 Oct 2009 10:47:30 -0400 Subject: [PATCH] Note by filter will now display any user that is at or above add_bugnote_threshold diff --git a/core/filter_api.php b/core/filter_api.php index 1874485..0d887df 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -3870,7 +3870,7 @@ function print_filter_note_user_id() { echo '>[' . lang_get( 'myself' ) . ']'; } - print_assign_to_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] ); + print_note_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] ); } ?> diff --git a/core/print_api.php b/core/print_api.php index a0bb366..471a1a6 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -450,6 +450,15 @@ function print_assign_to_option_list( $p_user_id = '', $p_project_id = null, $p_ print_user_option_list( $p_user_id, $p_project_id, $p_threshold ); } +function print_note_option_list( $p_user_id = '', $p_project_id = null, $p_threshold = null ) { + + if( null === $p_threshold ) { + $p_threshold = config_get( 'add_bugnote_threshold' ); + } + + print_user_option_list( $p_user_id, $p_project_id, $p_threshold ); +} + /** * List projects that the current user has access to. * -- 1.6.0.4