Skip to content

Commit 35e04e1

Browse files
committed
updated files
1 parent ba114f1 commit 35e04e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Model/Mautic/Contact.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ public function mappingContactData(array $data = [])
250250
public function getRequestData(array $data = [], $customer = null)
251251
{
252252
if ($customer) {
253-
$customerData = $customer->getData();
253+
try {
254+
$customerData = $customer->getData();
255+
} catch (\Exception $e) {
256+
$customerData = $customer->__toArray();
257+
}
254258
$address = $this->_getCustomerAddress($customer);
255259
if ($address) {
256260
$customerData = array_merge($data, $address);

0 commit comments

Comments
 (0)