Very similar to #1777336: Anonymous checkout creates broken registration entities. I got some deja vu as I was writing this issue up.
If you enter an invalid user name during checkout for "Other account", then it will pass validation. It will also spew a few errors. This results in corrupt registration records that can only be corrected via manually correcting database entries.
The isset($account) will always pass because user_load_by_name returns a valid value boolean false. I think most examples just test $account or test an isset on a property on the account object.
Patch incoming for 7.x-2.x as soon as I get a node id.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 0001-Issue-1818648-by-mradcliffe-Check-false-or-object-no.patch | 1.17 KB | mradcliffe |
Comments
Comment #1
mradcliffeReword title and one-line fix patch for review.
Edit: just checked includes/registration.forms.inc:registration_form_validate() and it does similarly to the patch.
Comment #2
jpontani commentedFixed in latest dev.