When adding or editing Profiles, names can be duplicated.
fixed in rev 655192.
Thanks Wendy for catching it.
And thanks again for the coming review
When I edit an existing profile and save my changes, I get:
(It does go ahead and save the changes though.)
I'm assuming this change introduced that behavior; I didn't go back and test it prior to this commit.
fixed in rev 654966
This must be check in updateProfile too.
I won't use the patch because IMHO this must be managed in core and not in the UI part.
I will add an Exception called AlreadyExistsProfileException which will be throw by updateProfile and addProfile