Set field value does not set trimmed token

Issue information

From user: grimreaper

Related to !404 (merged)

Contribution record

Fork management

Problem/Motivation

I wanted to create a process that will trim spaces in a user profile fields.

First, I figured out that the "trim" option of the "Entity: set field value" had no effect.

So I prepared an intermediate action using tamper trim. The resulting token is ok when displaying with a message.

But when using the resulting token as new field value, I figured out that the replaced token was not trimmed.

BUT, when putting a character after it, for example: "[trimmed_title].", then the token was effectively trimmed...

Note: I tried to inspire myself from: https://ecaguide.org/library/test%20models/set_field_values/ to see that it was possible to change field values without having to set "Save the entity" to true.

Steps to reproduce

I attached 2 process acting on node title so no dependencies.

Proposed resolution

I have not figured out from where this is coming from and I bet maintainers of ECA will found way quicker than me.

Remaining tasks

Find a solution
Implement it

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information