? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
28 May 2014

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33801&start=0

If the onUserBeforeSave event triggers an exception or JError then we should pick this up so we can set it in the JUser object

This allows the following kind of code:

$user = new JUser;
if (!$user->save)
{
     $user->getError();
}
avatar wilsonge wilsonge - open - 28 May 2014
avatar drmmr763
drmmr763 - comment - 31 May 2014

Csn you give us a plugin to test with ;) (lazy..)
You may blame the J!Tracker Application for transmitting this comment.

avatar wilsonge
wilsonge - comment - 31 May 2014

not at the moment :P frantically tidying room before guests arrive :P Literally you just need a plugin which returns false and sets a error in the dispatcher or throws an exception on the onUserBeforeSave event

avatar nicksavov nicksavov - change - 21 Aug 2014
Labels Removed: ?
avatar brianteeman brianteeman - change - 21 Aug 2014
Status New Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category Libraries
avatar waader
waader - comment - 14 Mar 2015

@wilsonge comparing this patch to the current user.php this seems totally out of sync which is no wonder after all that time. How should this be handled?

avatar wilsonge wilsonge - change - 15 Mar 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-03-15 01:06:00
avatar wilsonge wilsonge - close - 15 Mar 2015
avatar wilsonge wilsonge - close - 15 Mar 2015
avatar wilsonge wilsonge - head_ref_deleted - 15 Mar 2015
avatar wilsonge
wilsonge - comment - 15 Mar 2015

I'll do it again another day :P

Add a Comment

Login with GitHub to post a comment