Merge fields are not updated when a user is updated programmatically

Created on 17 August 2019, almost 6 years ago
Updated 10 July 2025, 16 days ago

Currently merge fields are updated only on user edit form submit.

Code to reproduce:

  $account = user_load($uid);
  $account->name = 'New name';
  user_save($account);

We expect this code to update merge fields if username is mapped to any of them, but it doesn't happen.

🐛 Bug report
Status

Closed: won't fix

Version

4.11

Component

General

Created by

🇷🇺Russia codeyourdream

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 States xenophyle

    Thanks for submitting this ticket — and sorry we didn’t get back to you about it sooner. We are cleaning up old issues and issue for old versions and are going to close this one. If this issue is still relevant for you, please re-open it and update the “Version” field, and include any updates to the behavior you are seeing.With a smaller issue queue, we’ll have an easier time getting back to you.

Production build 0.71.5 2024