Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
user system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Feb 2008 at 00:06 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sammys commentedHere is the patch.
Comment #2
bdragon commentedThe code from this section appears to have changed.
Comment #3
sammys commentedbdragon: In what way has it changed? The patch still applies...
Comment #4
sunBugs get fixed in HEAD first.
Comment #5
dave reidThis bug is actually fixed in 7.x. I tried editing and adding user accounts and there was no form_build_id variable in $user->data. Moving this back to 6.x.
Comment #6
cwgordon7 commentedThis patch still applies and fixes the problem.
Comment #8
Jorrit commentedI have updated the patch to apply to the latest version of drupal 6.x. I have two possible solutions. The first one is just ignoring the key form_build_id, but this leaves the existing value in the array. Given that Drupal 6 has been around for a long time, I suspect that many people have this value in their data field. So the second patch is slightly different: it will unset the form_build_id explicitly.
Comment #9
Jorrit commentedI have rerolled the patches against the latest -dev.
Comment #11
Jorrit commentedThanks to Eclipse for not creating git-compatible patches ... retry.
Comment #12
ufku commentedI think Heine's patch at #451770: Don't save form_build_id in data is more correct as the form_build_id comes from the profile form and it should be unset in the relevant submit handler.
Fixing the previously saved data should be done in a separate process, not in user_save.