#2338 closed defect (bug) (fixed)
Users page shows no role for some users
| Reported by: | ringmaster | Owned by: | ringmaster |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.2 |
| Severity: | normal | Keywords: | user listing bg|has-patch |
| Cc: | Focuses: |
Description
Sometimes when a role is reset for a user, the role title does not appear on the pages for users with that role.
The code incorrectly assumes that the 0 index of the $user->roles array holds the user's role, when the first index in the array might actually be > 0.
The included patch pulls the first item from the beginning of a copy of that array for use as the user's role, instead of assuming a 0 index.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
Described in ticket body