Modules may want to inject fields into the account fieldset on account registration forms. Unfortunately, user_register() uses array_merge() rather than array_merge_recursive() when combining core fields with those provided by modules. Consequently, any fields the user module places in $form['account'] is clobbered by anything modules return. Patch is attached.
--
Sammy Spets
Synerger
http://synerger.com
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | user.module-register_op_merge.patch | 380 bytes | teliseo |
| #8 | user.module-register_op_merge.patch | 348 bytes | teliseo |
| user.module.rego_.op_.fix_.200802280948.patch | 395 bytes | sammys |
Comments
Comment #1
mcarrera commentedMy users get kicked out when they go to /forums/forum_alias. Nothing happens if they access by forum/tid (eg forum/1)
Just wonder if the problem is related with the one described in this issue
Thanks!
Comment #2
moshe weitzman commentedlooks like a bug. can't test the fix right now. would be nice if someone provided a small module which showed off the fix.
Comment #3
Alice Heaton commentedPatch is still valid for Drupal 7, so moving it there so that it gets more attention ; please commiters make sure it gets back-ported to D6 :)
Reviewer notes :
Comment #4
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #5
casey commentedThis doesn't apply to D7 any more.
http://api.drupal.org/api/function/user_register_form/7
Comment #6
teliseo commenteduser.module.rego_.op_.fix_.200802280948.patch queued for re-testing.
Comment #8
teliseo commentedHere’s a replacement patch against current 6.x-dev with a proper path that should pass testing. Since this bug is not relevant to D7, and has few side effects, I’m hoping this patch can now be applied to 6.x-dev.
Comment #10
teliseo commentedAnother try at a patch...
Comment #12
ColinMctavish commentedsubscribing
Comment #13
teliseo commented#10: user.module-register_op_merge.patch queued for re-testing.