- Issue created by @robertragas
- Merge request !8Issue #3506502 by robertragas: Update the explode method in the... → (Open) created by robertragas
I have an issue with the user synchronizer when lead mapping has been enabled and has more than 1 line for example.
"user_lead_mapping";s:46:"mail|email
field_profile_first_name|firstname"
It will go through the explode function
$mappings = explode("\n", $config->get('api.user_lead_mapping'));
and end up with the first field having email\r
which then will not sync correctly.
This is likely caused by me developing on osx.
Mac needed I guess.
- On admin/config/services/adv-mautic enable "Synchronize Drupal user with Mautic lead" and have 2 fields in there.
- Force the user synchronizer by updating a user and see the first field will have a \r at the end.
This is likely caused by me developing on osx and wonder if we can make the explode a bit more broad, like maybe.
$mappings = preg_split('/\n|\r\n?/', $config->get('api.user_lead_mapping'));
Active
1.0
Code