Cannot edit a profile field of "Email" to use the Location Type "Primary"
Overview
One cannot edit a Profile field of the type email to have the location type primary.
Reproduction steps
- Go to a profile
- Create an email field with the location type "Home" and save it
- Edit that field and change the location type to "Primary" click save
- Edit that field again
Current behaviour
The location type is "Home" even though you just saved it as "Primary" and no error was thrown.
Expected behaviour
It should save as primary
Environment information
I was able to replicate this on 5.27