Cannot Reassign Duty for RA with Extra Spaces in Name
Opened this issue · 0 comments
conzty01 commented
Describe the bug
It is possible for users or possibly the import staff tool to add extra spaces before and after an RA's first or last name. This runs into issues when attempting to reassign a duty.
To Reproduce
Steps to reproduce the behavior:
- Navigate to the Manage Staff page
- Create a new RA record or edit an existing record
- In the last name field, add an extra space at the beginning of the word
- Save the change
- In the Edit Schedule page, assign the RA used in step 2 for duty
- Click the newly created duty to edit
- Reassign the duty to another RA
- Observe the following error appear: "Failed to Update Duty: Unable to Locate Previously Assigned RA for Duty"
Expected behavior
Extra spaces should be trimmed from the edges of RA names
Desktop (please complete the following information):
- OS: MacOS, Ubuntu, Windows 10
- Browser: Chrome, Firefox, Safari
- Version: Latest Production