- Patch #119114 by edkwh: profile fields incorrectly saved.
parent
8018fe942d
commit
dd30a14208
|
@ -175,8 +175,9 @@ function profile_user($type, &$edit, &$user, $category = NULL) {
|
|||
case 'register':
|
||||
return profile_form_profile($edit, $user, $category, TRUE);
|
||||
case 'update':
|
||||
return profile_save_profile($edit, $user, $category);
|
||||
case 'insert':
|
||||
return profile_save_profile($edit, $user, $category);
|
||||
return profile_save_profile($edit, $user, $category, TRUE);
|
||||
case 'view':
|
||||
return profile_view_profile($user);
|
||||
case 'form':
|
||||
|
@ -538,8 +539,8 @@ function profile_load_profile(&$user) {
|
|||
}
|
||||
}
|
||||
|
||||
function profile_save_profile(&$edit, &$user, $category) {
|
||||
$result = _profile_get_fields($category);
|
||||
function profile_save_profile(&$edit, &$user, $category, $register = FALSE) {
|
||||
$result = _profile_get_fields($category, $register);
|
||||
while ($field = db_fetch_object($result)) {
|
||||
if (_profile_field_serialize($field->type)) {
|
||||
$edit[$field->name] = serialize($edit[$field->name]);
|
||||
|
|
Loading…
Reference in New Issue