Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have a view that uses the same field twice, 2 tokens are created but only one gets replaced correctly.
For example
[views-send:field_shift_start]
[views-send:field_shift_start_1]
only the last one gets replaced.
I have 2 entities that share the same time fields but used for different value which is why I came across this.
Comments
Comment #1
hansfn CreditAttribution: hansfn commentedThx for the report.
Is the field displayed twice the view too, or is one of them hidden? The tokens are replaced with the rendered fields from the display. If a field is hidden I expect it to be replaced with nothing ...
Comment #2
marcus178 CreditAttribution: marcus178 commentedNo both are visible in the view, but on that subject it would be good if fields that aren't displayed could be used too. In my case i would like to include fields in the email that don't need to be shown in the view.
Comment #3
hansfn CreditAttribution: hansfn commentedIssue confirmed. I'll look at it.
Comment #4
hansfn CreditAttribution: hansfn commentedFixed in commit 424163e.
Comment #5
marcus178 CreditAttribution: marcus178 commentedWorks great, thank you