Skip to content

Commit

Permalink
Merge pull request #3189 from vanilla/hotfix/arg-conflict
Browse files Browse the repository at this point in the history
Fix ProfileExtender dropping data when email confirmation is used with applicant registration
  • Loading branch information
beckyvb committed Oct 9, 2015
2 parents bb96fc9 + 55b93e4 commit 5e92c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/dashboard/models/class.usermodel.php
Expand Up @@ -1746,7 +1746,7 @@ public function register($FormPostValues, $Options = array()) {

// Throw an event to allow plugins to block the registration.
unset($this->EventArguments['User']);
$this->EventArguments['User'] = $FormPostValues;
$this->EventArguments['RegisteringUser'] =& $FormPostValues;
$this->EventArguments['Valid'] =& $Valid;
$this->fireEvent('BeforeRegister');

Expand Down
2 changes: 1 addition & 1 deletion plugins/ProfileExtender/class.profileextender.plugin.php
Expand Up @@ -465,7 +465,7 @@ public function userModel_afterSave_handler($Sender, $Args) {
* @param $Args array
*/
public function userModel_afterInsertUser_handler($Sender, $Args) {
$this->updateUserFields($Args['InsertUserID'], $Args['User']);
$this->updateUserFields($Args['InsertUserID'], $Args['RegisteringUser']);
}

/**
Expand Down

0 comments on commit 5e92c16

Please sign in to comment.