Skip to content

Commit

Permalink
git merge with 2.3-develop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solwininfotech committed Nov 9, 2019
1 parent 6d906ab commit 6fe2ab2
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class Account extends AbstractForm
* @var \Magento\Framework\Api\ExtensibleDataObjectConverter
*/
protected $_extensibleDataObjectConverter;

private const XML_PATH_EMAIL_REQUIRED_CREATE_ORDER = 'customer/create_account/email_required_create_order';

/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Backend\Model\Session\Quote $sessionQuote
Expand Down Expand Up @@ -168,20 +166,19 @@ public function getFormValues()
} catch (\Exception $e) {
$data = [];
}

$data = isset($customer)
$data = isset($customer)
? $this->_extensibleDataObjectConverter->toFlatArray(
$customer,
[],
\Magento\Customer\Api\Data\CustomerInterface::class
)
: [];

foreach ($this->getQuote()->getData() as $key => $value) {
foreach ($this->getQuote()->getData() as $key => $value) {
if (strpos($key, 'customer_') === 0) {
$data[substr($key, 9)] = $value;
}
}

if ($this->getQuote()->getCustomerEmail()) {
$data['email'] = $this->getQuote()->getCustomerEmail();
}
Expand Down

0 comments on commit 6fe2ab2

Please sign in to comment.