Hi,

Just installed the module and found out it's not i18n compatible...

line #74
  if ($form['#action'] == '/user/register') {
    // No way to determine what role user will be, so leave form alone.
    return;
  }

Created a patch which fixes issue.

Cheers

CommentFileSizeAuthor
#1 profile_role.module.patch514 bytesbartezz
profile_role.module.patch589 bytesbartezz

Comments

bartezz’s picture

StatusFileSize
new514 bytes

Forget my patch above....

Thanx to http://drupal.org/node/374581#comment-2657436 I've created a less complicated patch.

Cheers

bartezz’s picture

Priority: Normal » Critical

After no response for a couple of months thinking this patch will be forgotten therefor marking it as critical!

Cheers

torpy’s picture

Title: Not i18n compatible... » Removes profile fields on user register page if running drupal in subfolder or with i18n
Status: Needs review » Reviewed & tested by the community

This issue happens if your running drupal in a subfolder too. The patch in #1 works great!