Skip to content

Commit

Permalink
version checker test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
solwininfotech committed Oct 16, 2019
1 parent 99f206f commit d5997ce
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,14 @@ public function getFormValues()
{
try {
$customer = $this->customerRepository->getById($this->getCustomerId());
} catch (\Exception $e) {
/** If customer does not exist do nothing. */
}
$data = isset($customer)
? $this->_extensibleDataObjectConverter->toFlatArray(
$data = $this->_extensibleDataObjectConverter->toFlatArray(
$customer,
[],
\Magento\Customer\Api\Data\CustomerInterface::class
)
: [];
CustomerInterface::class
);
} catch (\Exception $e) {
$data = [];
}
foreach ($this->getQuote()->getData() as $key => $value) {
if (strpos($key, 'customer_') === 0) {
$data[substr($key, 9)] = $value;
Expand Down

0 comments on commit d5997ce

Please sign in to comment.