Problem/Motivation
When a contact entity gets created via the auto_create_user_contact_mapping setting for a given user, their email address gets added as "main" email contact method.
However, this email address does not get marked as "primary" within the primary_entity_reference field type, which should probably be the default behavior?
Steps to reproduce
- Configure user contact mapping and activate it for the "emails" field.
- Register a new user via the user registration form
Proposed resolution
In \Drupal\crm\EventSubscriber\UserContactMappingSubscriber::onUserContactMappingCreate() the email address should be marked as primary.
Issue fork crm-3583185
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bluegeek9 commentedComment #5
bluegeek9 commented