buddyboss-platform
buddyboss-platform copied to clipboard
Fix - When submitting signup form, values for fields of type multi-select are not preserved if form is rejected
#2534
All Submissions:
- [x] Have you followed the Pull Requests Guidelines?
- [x] Does your code follow the WordPress' Coding Standards?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes proposed in this Pull Request:
Fixes #2534 .
How to test the changes in this Pull Request:
- Create a multi-select profile field and add it to "details (signup)" field group.
- Add some test selections for this field.
- Open an incognito window
- Navigate to the signup page.
- Submit the form with an illegal handle.
- Form should re-display, previous selections in multi-select do not appear.
Proof Screenshots or Video
https://www.loom.com/share/b1bc320d644547cb9567aecfa6869886
Other information:
- [X] Have you added an explanation of what your changes do and why you'd like us to include them?
- [ ] Have you written new tests for your changes, as applicable?
- [X] Have you successfully run tests with your changes locally?