Closed (fixed)
Project:
Registration codes
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 20:17 UTC
Updated:
1 Nov 2010 at 11:36 UTC
Thank you for this module. It has been very useful.
Whenever my users register with a code, they get assigned a role. This works fine but I also see an additional bullet point. Please see attached image.
| Comment | File | Size | Author |
|---|---|---|---|
| regcode_role.jpg | 3.97 KB | fehin |
Comments
Comment #1
aidanlis commentedPerhaps you created a role, and a rule, then deleted the role? Can you empty the regcode_roles table and see if this still happens?
Comment #2
aidanlis commentedI'm going to assume this is what happened.
Comment #3
fehin commentedI did not create a role and a rule and delete it. The role already existed before I install the regcode module. I emptied the regcode_roles table but nothing changed.
Comment #4
aidanlis commentedHrmm okay I'm not sure why this is happening, but I have replicated the problem. To fix it, you can do a "DELETE FROM regcode WHERE rid=0". I'll get a patch into the next release when I work out what's going on.
Comment #5
chellman commentedI've also noticed this. I'm changing this to a bug report to remind me to look at it.
Comment #6
aidanlis commentedFixed in dev release. It's actually a bug in drupal that needs to be worked around.
Comment #8
rpsuThanks aidanlis - your module is excellent for mass user registration management.
I've got the same issue at least a couple of times - but couldn't reproduce it yet. Still trying...
In my case user is given extra role ({users_roles} -table, user has a role with rid == 0). There are no rows in regcode -table
But user is given an extra role:
And naturally there is no role with rid = 0 in roles-table. I'll let you know if I can reproduce this and trace the reason for it.
So far it's only a bit confusing in /admin/user/user -list, but seems to cause no other problems AFAIK.
Comment #9
aidanlis commentedAre you using the latest -dev version?
Comment #10
rpsuNo, I am (was) using 6.x-2.4. I am about to update it in a few days. I'll get back to this then.