We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e04e1 commit d4a79d6Copy full SHA for d4a79d6
Model/Mautic/Contact.php
@@ -250,10 +250,10 @@ public function mappingContactData(array $data = [])
250
public function getRequestData(array $data = [], $customer = null)
251
{
252
if ($customer) {
253
- try {
254
- $customerData = $customer->getData();
255
- } catch (\Exception $e) {
+ if ($customer instanceof \Magento\Customer\Model\Data\Customer) {
256
$customerData = $customer->__toArray();
+ } else {
+ $customerData = $customer->getData();
257
}
258
$address = $this->_getCustomerAddress($customer);
259
if ($address) {
0 commit comments