#3378 closed defect (bug) (fixed)
Fix submitted values for text(area) and dropdown xprofile fields during registration
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Extended Profile | Keywords: | has-patch |
Cc: |
Description
During registration, if you have a required text, textarea, selectbox or multi-selectbox xprofile field filled in and you do not successfully complete the form, on submission, these values are wiped out forcing the user to fill in the respective fields again.
The (multi)selectbox error has existed since BP 1.2; the
textbox / textarea error is actually a regression from BP 1.2.
Attached patch attempts to fix these issues and also finetunes a few more "for" loops missed from #2985.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Thanks for this. I've tested it and fixed a few PHP warnings which I found.
I've also fixed a bug in (optional) text fields where, if another (required) field failed validation, it was restoring the value of that optional text field. Finally, I've changed the behaviour of the single-item select boxes to *not* show the "---" option if it is a required field, as it didn't make sense; picking it failed the form validation.