Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.7
-
Fix Version/s: 4.3.0
-
Component/s: Drupal Integration Modules
-
Labels:None
Description
civicrm_member_roles module is listening to the Drupal hook_login() and then attempting to perform its synschronisation. In the course of this, it saves the Drupal user object but it does so in a way where this object might be stale or missing certain data — and thus erases user data.
The solution to this is to force a reload of the user object before attempting to save it. Please see attached patch.