Your software
My Mautic version is: v2.15.3
My PHP version is: 7.2.21-1
Your problem
My problem is: When an existing contact with an assigned company gets to a Mautic landingpage, the data of the CONTACT FIELDS are automatically filled in the Mautic form. But not the assigned COMPANY FIELDS of this contact. The COMPANY FIELDS in the form are still blank.
These errors are showing in the log: No log file
Steps to reproduce
Create a landingpage with a form and the fields “contact name, company name and company street”
Create an email with a link to this landingpage
Send an email to an existing contact with an assigned company
The CONTACT FIELD “contact name” is correctly auto-filled. The COMPANY FIELDS “company name” and “company street” keep wrongly blank. (Wrongly, because the data of the company name and company street already exist in the Mautic database)
@npracht raises a good question in the issue. How do we deal with contacts that are members of multiple companies.
Edit1:
After some further investigation: the code already has a method that gets the values from the primary company getProfileFieldsWithPrimaryCompany()
So we could use that to auto-fill the company values from the primary company.