When sending out the registration mails, profiles aren't linked to the user yet

Created on 10 September 2020, almost 4 years ago
Updated 20 December 2023, 6 months ago

Problem/Motivation

When sending out the registration emails, the profile isn't linked to the user yet, so in \profile_tokens when fetching the profile around line 50, there is no profile to be loaded.

Steps to reproduce

Create a profile type, add in on the registration form. Use a token from that profile type in one of the registration mails that are triggered.

Proposed resolution

Have a fallback to fetch the profile because storage hasn't gone through yet at that point.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium daften

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom SoulReceiver

    Tested this latest patch on a Drupal 9.5.11 instance running Profile 1.7.0 and it works wonderfully!

  • Status changed to RTBC 6 months ago
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    We are using #9 in production to send registration emails containing profile fields and it works great.

Production build 0.69.0 2024