Commit c62f56c8 authored by Dries's avatar Dries
Browse files

- Patch #630864 by Amitaibu: fixed notice when fields were added to user,...

- Patch #630864 by Amitaibu: fixed notice when fields were added to user, becuase object was not passed correctly.
parent 9edcceb0
......@@ -2123,7 +2123,7 @@ function user_build_content($account, $build_mode = 'full') {
$account->content = array();
// Build fields content.
field_attach_prepare_view('user', array($account->uid, $account), $build_mode);
field_attach_prepare_view('user', array($account->uid => $account), $build_mode);
$account->content += field_attach_view('user', $account, $build_mode);
// Populate $account->content with a render() array.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment