Skip to content

Commit

Permalink
Display blank instead of 'user0' in Assigned to field
Browse files Browse the repository at this point in the history
When a user lacking the 'update_bug_assign_threshold' privilege (e.g.
updater) tries to edit an issue that has no handler, the 'Assigned to'
field shows 'user0' instead of a blank field as expected.

Fixes #12480
  • Loading branch information
dregad committed Sep 26, 2013
1 parent f2e6550 commit 42d19a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bug_update_advanced_page.php
Expand Up @@ -139,7 +139,11 @@
$tpl_additional_information_textarea = $tpl_show_additional_information ? string_textarea( $tpl_bug->additional_information ) : '';
$tpl_show_steps_to_reproduce = in_array( 'steps_to_reproduce', $t_fields );
$tpl_steps_to_reproduce_textarea = $tpl_show_steps_to_reproduce ? string_textarea( $tpl_bug->steps_to_reproduce ) : '';
$tpl_handler_name = string_display_line( user_get_name( $tpl_bug->handler_id ) );
if( NO_USER == $tpl_bug->handler_id ) {
$tpl_handler_name = '';
} else {
$tpl_handler_name = string_display_line( user_get_name( $tpl_bug->handler_id ) );
}

$tpl_can_change_view_state = $tpl_show_view_state && access_has_project_level( config_get( 'change_view_status_threshold' ) );

Expand Down

0 comments on commit 42d19a1

Please sign in to comment.