When hook_user_presave(&$edit, $account, $category) is used in custom module the module does not retain the value which was given earlier instead it resets the role and removes the previously assigned roles.
When hook_user_presave(&$edit, $account, $category) is used in custom module the module does not retain the value which was given earlier instead it resets the role and removes the previously assigned roles.
Comments
Comment #2
IRuslan commentedI propose to solve this in terms of #2375077: Fatal error in hook_user_presave() when used with Role Delegation module, the root of problem is the same.