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 ba114f1 commit 35e04e1Copy full SHA for 35e04e1
Model/Mautic/Contact.php
@@ -250,7 +250,11 @@ public function mappingContactData(array $data = [])
250
public function getRequestData(array $data = [], $customer = null)
251
{
252
if ($customer) {
253
- $customerData = $customer->getData();
+ try {
254
+ $customerData = $customer->getData();
255
+ } catch (\Exception $e) {
256
+ $customerData = $customer->__toArray();
257
+ }
258
$address = $this->_getCustomerAddress($customer);
259
if ($address) {
260
$customerData = array_merge($data, $address);
0 commit comments