Commit 6ffdf055 authored by Steven Wittens's avatar Steven Wittens
Browse files

Add missing array keys to fields when building user profile view, to make...

Add missing array keys to fields when building user profile view, to make hook_profile_alter() use more consistent.
parent 4e8a3432
......@@ -607,7 +607,7 @@ function profile_view_profile($user) {
'value' => $value,
'class' => $field->name,
);
$fields[$field->category][] = $item;
$fields[$field->category][$field->name] = $item;
}
}
return $fields;
......
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