Profile_Role Problem - working with Profile fields on Registration Form with arguments on URL

2012
Profile_Role Problem - working with Profile fields on Registration Form with arguments on URL

Bug: The profile_role module will check the user's role before allowing them accessing to the profile fields. When the profile fields need to be shown on Registration Form, the module sets up an exception that checks if this form is user registration form then skip checking user's role.

The bug happens if the user accessed to the registration form with arguments on the URL.

Solution is: change this line of profile_role.module

From

if ($form['#action'] == '/user/register') {

To

if (preg_match('/^\/user\/register.*/i'$form['#action'])) {

Leave a comment