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

Shreya Shetty created an issue. See original summary.

IRuslan’s picture

Status: Active » Closed (duplicate)

I 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.