Correctly update user name when receiving payment

This commit is contained in:
Alex Cabal 2022-07-24 18:32:49 -05:00
parent fc0b69176c
commit f572422d8c

View file

@ -29,6 +29,7 @@ class Payment extends PropertiesBase{
$user = User::GetByEmail($this->User->Email);
// User exists, use their data
$user->Name = $this->User->Name;
$this->User = $user;
// Update their name in case we have their email (but not name) recorded from a newsletter subscription