Token mapping for username is being overridden in RecurlyEntityOperations::entityUpdate()

Created on 1 November 2023, over 1 year ago

Problem/Motivation

The username field is being set to the entity->label() when syncing the recurly account information.

$original_values['username'] = $original_entity->label();
$updated_values['username'] = $entity->label();

Overwriting whatever was set in the token mapping config.

Proposed resolution

Move the 2 lines mentioned above before the token replacement, letting the token replacement get the final say in what the username is.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

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

Comments & Activities

Production build 0.71.5 2024