Engineering / ENG-1791
Phone number with spaces is refused silently and the page says 'Saved'
Description
Greenhollow (SUP-1215): changing a worker's number to +353 86 123 4567 says "Saved" and keeps the old number. Without spaces it saves.
Steps to reproduce
- Person page, edit the mobile number, type it with spaces.
- Save.
Expected: saved, or a reason why not. Actual: "Saved", old number kept.
The API refuses the spaces with a 422, and the person page shows "Saved" for any answer.
Linked issues
- relates to SUP-1215 Greenhollow: phone number with spaces says 'saved' but keeps the old number Done
Spaces are stripped before saving, and a refused number now shows the reason.