Skip to content

Commit d5997ce

Browse files
author
solwininfotech
committed
version checker test failed
1 parent 99f206f commit d5997ce

File tree

1 file changed

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

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,14 @@ public function getFormValues()
163163
{
164164
try {
165165
$customer = $this->customerRepository->getById($this->getCustomerId());
166-
} catch (\Exception $e) {
167-
/** If customer does not exist do nothing. */
168-
}
169-
$data = isset($customer)
170-
? $this->_extensibleDataObjectConverter->toFlatArray(
166+
$data = $this->_extensibleDataObjectConverter->toFlatArray(
171167
$customer,
172168
[],
173-
\Magento\Customer\Api\Data\CustomerInterface::class
174-
)
175-
: [];
169+
CustomerInterface::class
170+
);
171+
} catch (\Exception $e) {
172+
$data = [];
173+
}
176174
foreach ($this->getQuote()->getData() as $key => $value) {
177175
if (strpos($key, 'customer_') === 0) {
178176
$data[substr($key, 9)] = $value;

0 commit comments

Comments
 (0)