Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
fix for error handling saveUser function #6275
Pull Request for Issue # new
Summary of Changes
the current implementation of saving the (joomla) user is not handling any errors correct.
this PR corrects the error handling by testing for a false (both bind and save) and if one of these returned false, it enqueues the error message that is set in the Joomla User object.
When the user saving now fails due to Joomla or a plugin, the correct error message is displayed instead of the profile saved message.
In a (existing) system plugin, create the folowing function:
Now when saving your user profile in the front-end you should see the correct error 'Oepsie...' preventing the saving of the profile.