I'm trying to import nodes with a field referencing to a user, I'm able to map it wit uid, uuid, some fields, etc, but not with user mail.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

p4trizio created an issue. See original summary.

p4trizio’s picture

bmcclure’s picture

This is extremely useful! Email is sometimes the only reliable way to match up users between different systems, so having the built-in email field for users available to use as a reference greatly simplifies things.

The patch applies cleanly and works great for configuring the feed to reference a user by email. If I run into any issues while running the feed I will report back, but so far this seems great.

Thank you!

LeDucDuBleuet’s picture

Status: Active » Reviewed & tested by the community

I can also confirm the patch still applies cleanly and works like a charm!

Referencing users by email simplifies things a lot when needed.

It would be great if this little patch could be merged into the module for the next release please.

Thank you for a great module!

  • MegaChriz committed 884264db on 8.x-3.x authored by p4trizio
    Issue #3207793 by p4trizio, bmcclure, LeDucDuBleuet: Allow to reference...
MegaChriz’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#2998037: Allow more field types to be used as reference filter fields

Thanks for the patch! I also added support for email for the Config Entity Reference target and the Book target. Committed #2 with that change.

Note that there is a similar issue to add support for even more field types, but that one hangs on getting test coverage:
#2998037: Allow more field types to be used as reference filter fields

Status: Fixed » Closed (fixed)

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