Posted by alexis on April 3, 2007 at 2:53pm
Jump to:
| Project: | Drupal core |
| Version: | 6.x-dev |
| Component: | user.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
If you modify user settings so that users can choose their own password, automatically login after registration and there's no need for administration approval then you won't be able to override the redirection after registration using $form['#redirect'] from hook_form_alter().
The patch replaces drupal_goto() with return '' in the relevant block of code in user_register_submit(). Now $form['#redirect'] works correctly.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| user_redirect_0.patch | 759 bytes | Ignored: Check issue status. | None | None |
Comments
#1
Good catch. +1
#2
Committed to 5. Should go in HEAD.
#3
Committed to CVS HEAD. Thanks.
#4