From d74a153f14c3d20072ad06ce6b7160a822876c6e Mon Sep 17 00:00:00 2001 From: Yuxing Zheng <yuxzheng@ebay.com> Date: Fri, 20 Mar 2015 16:11:17 -0500 Subject: [PATCH] MAGETWO-35386: Blank email is sent when trying to change password for a customer - Bug fixes --- app/code/Magento/Customer/Model/AccountManagement.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/Model/AccountManagement.php b/app/code/Magento/Customer/Model/AccountManagement.php index 129f4699011..59fbcb7f9f0 100644 --- a/app/code/Magento/Customer/Model/AccountManagement.php +++ b/app/code/Magento/Customer/Model/AccountManagement.php @@ -839,6 +839,7 @@ class AccountManagement implements AccountManagementInterface $storeId = $this->getWebsiteStoreId($customer); } + $customerEmailData = $this->getFullCustomerObject($customer); /** @var \Magento\Framework\Mail\TransportInterface $transport */ $transport = $this->transportBuilder->setTemplateIdentifier( $this->scopeConfig->getValue( @@ -849,7 +850,7 @@ class AccountManagement implements AccountManagementInterface )->setTemplateOptions( ['area' => \Magento\Framework\App\Area::AREA_FRONTEND, 'store' => $storeId] )->setTemplateVars( - ['customer' => $customer, 'store' => $this->storeManager->getStore($storeId)] + ['customer' => $customerEmailData, 'store' => $this->storeManager->getStore($storeId)] )->setFrom( $this->scopeConfig->getValue( self::XML_PATH_FORGOT_EMAIL_IDENTITY, -- GitLab