diff -r -u mantis.org/billing_inc.php mantis/billing_inc.php --- mantis.org/billing_inc.php 2008-05-22 04:50:55.000000000 +0200 +++ mantis/billing_inc.php 2009-08-03 14:11:25.000000000 +0200 @@ -65,6 +65,14 @@ $t_bugnote_stats_to_y = gpc_get_int('end_year', $t_bugnote_stats_to_def_y); $f_get_bugnote_stats_button = gpc_get_string('get_bugnote_stats_button', ''); + if ( access_has_project_level( config_get( 'time_tracking_reporting_select_reporter_threshold' ) ) ) { + $t_select_reporter = true; + $f_reporter_id = gpc_get_int( 'reporter_id', ALL_USERS ); + } + else { + $t_select_reporter = false; + $f_reporter_id = auth_get_current_user_id(); + } $f_bugnote_cost = gpc_get_int( 'bugnote_cost', '' ); $f_project_id = helper_get_current_project(); @@ -77,17 +85,20 @@ ?>