If you use content_profile module the option 'Use on Auto Assign Role paths' doesn't work.
It just doesn't save settings.

I fixed it:
autoassignrole.module line 478

<?php
if (empty($autoassignrole)) {
    $autoassignrole['values'] = array_keys(user_roles((TRUE)));
  }
?>

changed to

<?php
if (empty($autoassignrole)) {
    $autoassignrole['autoassignrole_use'] = array_keys(user_roles((TRUE)));
  }
?>

Comments

edufol’s picture

Thanks! It works :)

cyberswat’s picture

Status: Needs review » Needs work

This isn't a patch

fenstrat’s picture

Status: Needs work » Closed (duplicate)
guntherdevisch’s picture

Version: 6.x-1.2 » 6.x-2.0-beta1
Status: Closed (duplicate) » Active

Hi all,

I think my settings under 'Use on Auto Assign Role paths' aren't saved. I have two AAR paths, where i want to display an upload box on one of the registration forms. I marked 'Use on Auto Assign Role paths' in my Content Profile settings, but when i check my registration form, i don't see the upload box. Where are the values of 'Use on Auto Assign Role paths' saved in the database? So i can check.

The patch above is allready in my version, 6.x-2.0-beta1.

Note: I'm also using LoginToboggan.

See also this issue: http://drupal.org/node/1038880

Can someone help me?

Thanks,
Gunther

fenstrat’s picture

Version: 6.x-2.0-beta1 » 6.x-1.2
Status: Active » Closed (duplicate)
Egypt Web Design’s picture

Julia !
YOU ARE THE BEST, thank you so much :-)

LGLC’s picture

This worked perfectly for me. The setting wasn't being saved at all before this, rendering it obsolete. Now it works like a charm. Thanks!