Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b3d0522

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 1a2f2ab commit b3d0522

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
@@ -3950,7 +3950,7 @@ function print_filter_note_user_id() {
39503950
echo '>[' . lang_get( 'myself' ) . ']</option>';
39513951
}
39523952

3953-
print_assign_to_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
3953+
print_note_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
39543954
}
39553955
?>
39563956
</select>

‎core/print_api.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,15 @@ function print_assign_to_option_list( $p_user_id = '', $p_project_id = null, $p_
458458
print_user_option_list( $p_user_id, $p_project_id, $p_threshold );
459459
}
460460

461+
462+
function print_note_option_list( $p_user_id = '', $p_project_id = null, $p_threshold = null ) {
463+
if ( null === $p_threshold ) {
464+
$p_threshold = config_get( 'add_bugnote_threshold' );
465+
}
466+
467+
print_user_option_list( $p_user_id, $p_project_id, $p_threshold );
468+
}
469+
461470
/**
462471
* List projects that the current user has access to.
463472
*
@@ -860,7 +869,7 @@ function print_enum_string_option_list( $p_enum_name, $p_val = 0 ) {
860869
}
861870
}
862871

863-
/*
872+
/**
864873
* Returns a list of valid status options based on workflow
865874
* @param int $p_user_auth User's access level
866875
* @param int $p_current_value Current issue's status

0 commit comments

Comments
 (0)
Please sign in to comment.