- Issue created by @kenorb
- Status changed to Needs review
over 1 year ago 11:48pm 27 April 2023 - π¨π¦Canada joelseguin Ontario, Canada
Thanks @kenorb - I can confirm that the patch works great. I was attempting to add a date token [current-date:html_year] and was wondering why it wasn't getting applied.
- Status changed to RTBC
about 1 year ago 10:51am 16 August 2023 - π©πͺGermany kreatIL
I can also confirm patch #2 fixes the issue. In my case [current-date:custom] did not get replaced at first. With the patch being applied it works like a charm. Thank you.
- Status changed to Needs review
about 1 year ago 9:29pm 16 October 2023 - π¨π¦Canada smulvih2 Canada π
I was experiencing the same issue, but patch #2 did not fix the issue for me. In my case the token is
[current-user:field_organization:target_id]
. Thecurrent-user
token is the first to be replaced within it's own if statement. Then in a later if statement if $tokens[$token_entity_type] is not being used then it overwrites my current-user value.The original ticket that introduced the
else {$argument = '';}
code (related issue) aims to catch when the token cannot be replaced, instead of returning the token back it just returns a blank string. I have captured this in a preg_match at the end of the if statements looking at replacing the token with it's value.Please give this a test for your cases and let me know if this works for everyone. Thanks!
- π©πͺGermany kreatIL
@smulvih2: Thank you for submitting the patch. I've tested it in my environment, and it successfully fixed the token replacement issue I was experiencing.
- πΊπΈUnited States rudy.barrett
Confirmed this fixes my views with argument tokens of [current-user:field_custom:name] as well.
-
smulvih2 β
committed 62608c09 on 2.0.x
Issue #3356997 by kenorb, smulvih2: Global tokens not replaced
-
smulvih2 β
committed 62608c09 on 2.0.x
- Status changed to Fixed
about 1 year ago 2:03pm 18 October 2023 - π¨π¦Canada smulvih2 Canada π
Pushed out a new release 2.0.2 with this fix. Hope this gets everyone past the global token replacement issue.
Automatically closed - issue fixed for 2 weeks with no activity.