Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2006 at 07:45 UTC
Updated:
22 Sep 2006 at 20:37 UTC
When you alter the users table and want to update your field through hook_user it is blanked by the user_save function. Take a look at my birthday module for an example.
It comes down to the fact that if you set your custom field to NULL as described in the docs, the user_save function still uses it in its query. When you use unset() it will not be used by user_save().
So either the documentation should be updated that you should use unset in stead of NULL, or it should be fixed. The patch attached to this post fixes my issue.
| Comment | File | Size | Author |
|---|---|---|---|
| user.module_61.patch | 503 bytes | jax |
Comments
Comment #1
jax commented