This is sort of a bug as well.
I went to update a students personal email which is the only email in the system at this point. I edited it to move from a plnu to gmail. When I hit save, the plnu email remained primary even thought it was no longer in the system.
It seems to me that if there is only one email in the system, the primary email should automatically follow that email. It seems error prone for someone to change the email field on edit and the primary email to remain an email that is not loner in the system.
That seems like it could be complicated, but it seems needed. If too complicated, maybe there is a way for a box to pop up that says "Make Primary? Y/N" whenever an email address is updated, especially if it is the only one in the system.
Thanks,
SP
After reviewing, I discovered that there was actually a bit of code that hid the make preferred button next to the email that was preferred. I have removed that. So now, if you change the email address, you can click the "Make preferred" button and it will update the preferred email as well. This will be included in version 2.56.
Senior Software Developer
Global Ministry Center - Church of the Nazarene