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
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

JacobSingh - November 12, 2007 - 03:29
Status:active» fixed

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

Anonymous - November 26, 2007 - 03:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.