As mentioned in #30152 (comment), the method ProfileModel::save is mostly a copy of its parent UserModel::save. This is going to lead to problems (just like the issue fixed in #30152), because every time someone changes the method UserModel::save, they need to remember about ProfileModel and might need to include the same change there.
Summary of Changes
By calling the parent method, code duplication is reduced. As the form in the profile view is a reduced form of the user edit form, some values need to be changed, because the validation inside UserModel::save would fail otherwise.
Testing Instructions
Log in to backend with an account with "Manager" permissions.
Edit your profile by clicking on "User Menu" (top right) - "Edit Account", change something and save.
Make sure everything regarding changing the profile works.
Log in to backend with an account with "Administrator" permissions (not Super User!).
Edit your profile by clicking on "User Menu" (top right) - "Edit Account", change something and save.
Make sure everything regarding changing the profile works.
Navigate to "Users - Manage".
Edit your own account there, change something, save.
Edit another account there, change something, save.
Make sure everything regarding editing user accounts works.
Log in to backend with an account with "Super User" permissions. Repeat steps 5-10.
I have tested this item✅ successfully on 5b5c43d
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30194.