View Issue Details

IDProjectCategoryView StatusLast Update
0012480mantisbtbugtrackerpublic2014-02-07 18:24
Reporterdarylhurst Assigned Todregad  
PrioritynormalSeveritytextReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.3 
Target Version1.2.16Fixed in Version1.2.16 
Summary0012480: Editing a bug with no assigned user and no access to edit assigned to field shows 'user0'
Description

If a user of role updater edits a record with no assigned user then the 'Assigned To' field shows as 'user0'.

Steps To Reproduce

Create new bug with status 'new' but don't assign to any user.
Login with user role 'updater', select the newly created issue and click the Edit button on the View Issues page.
Note that the Assigned To field shows as 'user0'.

Additional Information

Appears to be a simple bug in either the user_get_name function in core/user_api.php or within bug_update_advanced_page.php.
A simple fix is to amend the following line (103) of bug_update_advanced_page.php:

$tpl_handler_name = ( 0 == $tpl_bug->handler_id ) ? '' : string_display_line( user_get_name( $tpl_bug->handler_id ) );

TagsNo tags attached.

Activities

jeremfg

jeremfg

2010-12-01 14:23

reporter   ~0027531

Last edited: 2010-12-01 14:29

I've stumbled on this issue too.

In fact, it happens to any user that can access the "edit" page of a bug, but doesn't have a high enough acces level to edit the "Assigned to" field.

Edit:

  • I've applied the suggested fix, and seems to work fine!

Related Changesets

MantisBT: master-1.2.x d67d9bd1

2013-09-26 08:24

dregad


Details Diff
Display blank instead of 'user0' in Assigned to field

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 0012480
Affected Issues
0012480
mod - bug_update_advanced_page.php Diff File

MantisBT: master 42d19a11

2013-09-26 08:24

dregad


Details Diff
Display blank instead of 'user0' in Assigned to field

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 0012480
Affected Issues
0012480
mod - bug_update_advanced_page.php Diff File