Skip to content

Commit

Permalink
Allow selecting any user with privileges when filtering by bug note
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rombert committed Sep 15, 2012
1 parent 1a2f2ab commit b3d0522
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/filter_api.php
Expand Up @@ -3950,7 +3950,7 @@ function print_filter_note_user_id() {
echo '>[' . lang_get( 'myself' ) . ']</option>';
}

print_assign_to_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
print_note_option_list( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] );
}
?>
</select>
Expand Down
11 changes: 10 additions & 1 deletion core/print_api.php
Expand Up @@ -458,6 +458,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.
*
Expand Down Expand Up @@ -860,7 +869,7 @@ function print_enum_string_option_list( $p_enum_name, $p_val = 0 ) {
}
}

/*
/**
* Returns a list of valid status options based on workflow
* @param int $p_user_auth User's access level
* @param int $p_current_value Current issue's status
Expand Down

0 comments on commit b3d0522

Please sign in to comment.