Skip to content

Commit 9b39286

Browse files
committedSep 15, 2012
Allow selecting any user with privileges when filtering by bug note
reporter Fix based on patch attached by frodgers at http://www.mantisbt.org/bugs/view.php?id=9725 . Fixes #9725: Filter on "Note By" by a reporter
1 parent 42c982d commit 9b39286

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
 

‎core/filter_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3922,7 +3922,7 @@ function print_filter_note_user_id() {
39223922
echo '>[' . lang_get( 'myself' ) . ']</option>';
39233923
}
39243924

3925-
print_assign_to_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
3925+
print_note_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
39263926
}
39273927
?>
39283928
</select>

‎core/print_api.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,15 @@ function print_assign_to_option_list( $p_user_id = '', $p_project_id = null, $p_
466466
print_user_option_list( $p_user_id, $p_project_id, $p_threshold );
467467
}
468468

469+
470+
function print_note_option_list( $p_user_id = '', $p_project_id = null, $p_threshold = null ) {
471+
if ( null === $p_threshold ) {
472+
$p_threshold = config_get( 'add_bugnote_threshold' );
473+
}
474+
475+
print_user_option_list( $p_user_id, $p_project_id, $p_threshold );
476+
}
477+
469478
/**
470479
* List projects that the current user has access to.
471480
*
@@ -776,7 +785,7 @@ function print_enum_string_option_list( $p_enum_name, $p_val = 0 ) {
776785
}
777786
}
778787

779-
/*
788+
/**
780789
* Returns a list of valid status options based on workflow
781790
* @param int $p_user_auth User's access level
782791
* @param int $p_current_value Current issue's status

0 commit comments

Comments
 (0)
Please sign in to comment.