Closed (fixed)
Project:
Apply for role
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2008 at 01:35 UTC
Updated:
3 Jan 2009 at 04:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
d.clarke commentedI took a look at the code where it was erroring and I was able to get a work around in place so I'm including it as a patch. I'm not sure though if my patch is the proper Drupal way to do things so I'd appreciate it if someone could review it. To recreate the issue:
1. Make sure that the role selection is required during registration
2. Create a new user assigned to a role
3. Log in as the new user and try to edit their profile
Comment #2
d.clarke commentedUpdating status... forgot to update on last post
Comment #3
d.clarke commentedAfter looking into this issue some more it appears that when applying for roles is made mandatory when a user tries to update their user's profile if they don't check another previously unselected role then it displays the "Please select a role." validation message. I'll look in to this more later but for now this proposed patch can be ignored.
Comment #4
Soren Jones commentedbeday00,
Thank you for reporting this and for your persistence! This was a significant bug. And you were right about where it was. Validate was being used incorrectly.
Soren