Skip to content

Commit 6fe2ab2

Browse files
author
solwininfotech
committed
git merge with 2.3-develop fix
1 parent 6d906ab commit 6fe2ab2

File tree

1 file changed

+3
-6
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form

1 file changed

+3
-6
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/Account.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class Account extends AbstractForm
3838
* @var \Magento\Framework\Api\ExtensibleDataObjectConverter
3939
*/
4040
protected $_extensibleDataObjectConverter;
41-
4241
private const XML_PATH_EMAIL_REQUIRED_CREATE_ORDER = 'customer/create_account/email_required_create_order';
43-
4442
/**
4543
* @param \Magento\Backend\Block\Template\Context $context
4644
* @param \Magento\Backend\Model\Session\Quote $sessionQuote
@@ -168,20 +166,19 @@ public function getFormValues()
168166
} catch (\Exception $e) {
169167
$data = [];
170168
}
171-
172-
$data = isset($customer)
169+
$data = isset($customer)
173170
? $this->_extensibleDataObjectConverter->toFlatArray(
174171
$customer,
175172
[],
176173
\Magento\Customer\Api\Data\CustomerInterface::class
177174
)
178175
: [];
179-
180-
foreach ($this->getQuote()->getData() as $key => $value) {
176+
foreach ($this->getQuote()->getData() as $key => $value) {
181177
if (strpos($key, 'customer_') === 0) {
182178
$data[substr($key, 9)] = $value;
183179
}
184180
}
181+
185182
if ($this->getQuote()->getCustomerEmail()) {
186183
$data['email'] = $this->getQuote()->getCustomerEmail();
187184
}

0 commit comments

Comments
 (0)