Incorrect IDs in admin GUI
chrissearle - November 11, 2007 - 20:52
| Project: | Admin Role |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Here's the select that is generated in the admin GUI:
<select name="adminrole_adminrole" class="form-select" id="edit-adminrole-adminrole" ><option value="0">-- Please Select One --</option><option value="1">anonymous user</option><option value="2">authenticated user</option><option value="3">flokken</option><option value="4">greyhound</option><option value="5">gustibus</option><option value="6">hutadmin</option><option value="7">leder</option><option value="8">odin</option><option value="9">old members</option><option value="10">pionerene</option><option value="11" selected="selected">siteadmin</option><option value="12">troppen</option></select>Now - in the DB:
+-----+--------------------+
| rid | name |
+-----+--------------------+
| 1 | anonymous user |
| 2 | authenticated user |
| 3 | flokken |
| 4 | greyhound |
| 5 | gustibus |
| 6 | hutadmin |
| 7 | leder |
| 9 | odin |
| 10 | old members |
| 11 | pionerene |
| 12 | siteadmin |
| 13 | troppen |
+-----+--------------------+
So - role 8 was removed at some point. But - the admin role select seems to just increment from 1 - so it has roles 1-12 instead of 1-13 less 8.

#1
Hi, thanks for catching this. I'm not sure how that array_merge got in there, but I think it's fixed now in DRUPAL-5.
Best,
Jacob
#2
Automatically closed -- issue fixed for two weeks with no activity.