Skip to content

Commit 0dfe254

Browse files
committedDec 14, 2012
Do not remove current user from list
As mentioned by atrol in issue #10130, removing the current user causes potential loss of functionality when using filters because [myself] (handler_id = -1) is not the same as a specific handler_id. This is a partial revert of 748c4ce.
1 parent e7b24a6 commit 0dfe254

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎core/print_api.php

-6
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@ function print_user_option_list( $p_user_id, $p_project_id = null, $p_access = A
273273
$t_show_realname = ( ON == config_get( 'show_realname' ) );
274274
$t_sort_by_last_name = ( ON == config_get( 'sort_by_last_name' ) );
275275
foreach( $t_users as $t_key => $t_user ) {
276-
# Remove current user from the list (there is a "myself" value)
277-
if( $t_user['id'] == $t_current_user ) {
278-
unset( $t_users[$t_key] );
279-
continue;
280-
}
281-
282276
$t_user_name = string_attribute( $t_user['username'] );
283277
$t_sort_name = utf8_strtolower( $t_user_name );
284278
if( $t_show_realname && ( $t_user['realname'] <> '' ) ) {

0 commit comments

Comments
 (0)