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

Command icon 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

svendecabooter created an issue. See original summary.

bluegeek9 made their first commit to this issue’s fork.

bluegeek9’s picture

Assigned: Unassigned » bluegeek9

bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging CRM as a favorite on the project page to help others discover it and show your support.
  • Review the Developer Docs for accuracy and clarity.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bluegeek9 committed 0a3cf1bd on 1.0.x
    feat: #3583185 User Contact Mapping: email field is not set as primary
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.