Token values not detected

Created on 29 August 2023, over 1 year ago

Problem/Motivation

For some reason my tokens display strange formats e.g. event={nid} shows

event=\n
\n
\n
\n
\n
123\n
\n
\n
\n
\n

After its processed the value is event='' and does not trigger my button for display. This is because it uses PHP_EOL to detect each key=value pair per line and thinks each \n above is a new line. This is the key=value field only. It works fine for query parameters.

Steps to reproduce

Create a view
Create a view_any_button in the header of the view
Add route name that requires a parameter
Enter the parameter = {{nid}} e.g. node={{nid}}
Save

No button is displayed because it thinks node=''

Proposed resolution

My fix is to replace the "end of line" character with my own. Then use it to detect each new line.

Remaining tasks

na

User interface changes

na

API changes

na

Data model changes

na

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΌπŸ‡ΈSamoa ainsofs

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

Comments & Activities

Production build 0.71.5 2024