The logged in user object is partially loaded as it's loaded from $GLOBALS['user']. Attached a patch that checks whether the user is logged in and loads the user object. Putting this down as a bug, but not sure if that labelling is correct.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ACF created an issue. See original summary.

DamienMcKenna’s picture

FileSize
839 bytes

Nice improvement. This version just adds a comment.

  • DamienMcKenna committed 957dd26 on 7.x-1.x authored by ACF
    Issue #2551369 by ACF: Load the full user object when creating the user...
DamienMcKenna’s picture

Status: Needs review » Fixed

I've committed this to both the D6 and D7 branches. Thanks!

  • DamienMcKenna committed d1e5b33 on 6.x-1.x authored by ACF
    Issue #2551369 by ACF: Load the full user object when creating the user...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.