Open LadyVulcan opened 2 years ago
I noticed this last night. This is resulting from users that were imported via script, when no email was known. Email in the business layer is unique. I would assert that the core issue in this interaction is the retention of other edits made. Will require an assessment of at minimum /squire2/squire/resources/views/profile/edit.blade.php and probably /squire2/squire/resources/views/profile/new.blade.php
Describe the bug Editing a Knight sometimes produces an error "The email has already been taken." and wipes edit progress
To Reproduce Steps to reproduce the behavior:
Expected behavior An existing field shouldn't throw errors, so perhaps data validation needs to be done on the existing data. Furthermore, can we cache the data entered at the time of submit and give that back to the user?
Desktop (please complete the following information):
Additional context Add any other context about the problem here.