When the user logs in, $user->picture is set to an object. When remember_me_user_login() sends $account to drupal_write_record(), the latter tries to cast the picture column to an int, as it's expecting $user->picture to be an int, the picture fid, not the full object. THIS CAUSES THE VALUE OF picture to loose the fid and therefor leads to loss of data: the users's picture fid is lost.

One solution would be to replace $user->picture as an object with $user->picture->fid inside of remember_me_user_login().

This is essentially a duplicate of https://www.drupal.org/node/1071330#comment-12082176

Comments

aklump created an issue. See original summary.

aklump’s picture

Issue summary: View changes