This bug also applies to CVS HEAD
How to Re-create:
1. Enable the profile module
2. Configure any two profile fields to "enable" and "required"
3. Edit your user account via user/edit
4. Only fill in data for one of the required profile fields and click the submit button
5. The information you originally submitted is not carried over.
How to Fix:
diff -u -r1.30 profile.module
--- profile.module 13 Nov 2003 19:52:54 -0000 1.30
+++ profile.module 15 Nov 2003 22:57:15 -0000
@@ -96,7 +96,7 @@
return _profile_validate($edit, "required", $user);
case "edit_form":
// when user tries to edit his own data
- return _profile_form(object2array($user), "private");
+ return _profile_form($edit, "private");
case "edit_validate":
// validate user data editing
return _profile_validate($edit, "private", $user);
Comments
Comment #1
Kjartan commentedComment #2
ax commentedaccording to [1], this bug is the reason that users cannot edit their accounts (password etc) anymore. try editing your account on drupal.org - it doesn't work. marking this CRITICAL.
the issue of not being to able to edit ones account has been reported twice afterwards [2] [3]. as i am not sure this is fixed with the solution offered here, i only mark [3] a dup of [2]. if it *is* fixed, please mark [2] dup / fixed.
[1] http://drupal.org/node/view/4155
[2] http://drupal.org/node/view/4634
[3] http://drupal.org/node/view/4668
Comment #3
matt westgate commentedMy aplogies ax, but after further investigating, this bug is not the reason users cannot edit their accounts (password etc) anymore. That lockout was due to an update in user_validate_mail and it's interaction with mailalias.module. The module has been updated and will hopefully be patched on this site soon. However, this bug of "data loss after validation fails" is still an issue, albeit not a critical one.
Comment #4
matt westgate commentedThis bug has been fixed in the latest Drupal versions.