Problem/Motivation

When adding tokens to the field which contain non-required fields, the tokens stays in the .ics file.

Steps to reproduce

Configure an .ics field and add non required field tokens.

Proposed resolution

Clear tokens which were not replaced

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jorgespiessens created an issue. See original summary.

jorgespiessens’s picture

Added a 'clear' parameter for non replaced tokens.

zekvyrin’s picture

Thank you @jorgespiessens for the report & the code.

I understand what you mean. I'll try to test it and think/test possible a usecase when this solution could not be a problem.

Basically I want to see what happens if I add a string containing with an "invalid" token like "[something]" in their description.

  • jorgespiessens authored c2cdfce on 8.x-1.x
    Issue #3191385 by jorgespiessens, Zekvyrin: Non required field tokens...
zekvyrin’s picture

I've tested & commited your patch @jorgespiessens. Thank you!

"Invalid" tokens are not cleared (so you can use [] as normal if you want)

zekvyrin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.