- Issue created by @firewaller
- 🇺🇸United States firewaller
Patch attached for 9.1.0-beta8. This excludes the hook_update to prevent conflicts with future hook updates. Please run
drush cset patternkit.settings patternkit_json_editor_token_clear false -y
when using this specific patch. - Status changed to Needs review
10 months ago 9:38pm 5 February 2024 - 🇮🇳India minsharm India
Retested the issue and result looks good to me.
Results:
- Valid tokens with a provided context were replaced as expected
- An invalid token was removed only when "Replace empty token values" checkbox is checked
- Non-token text in square brackets was unaffected
My test content:
My content with a valid token: [node:title]<br/> My content with an invalid token: [node:something]<br/> My referenced text with square brackets: [non-token content]<br/>
Output
Case 1 : Check the "Replace empty token values" checkbox
My content with a valid token: Patternkit Page<br/> My content with an invalid token: <br/> My referenced text with square brackets: [non-token content]<br/>
Case 2 : Uncheck the "Replace empty token values" checkbox
My content with a valid token: Patternkit Page<br/> My content with an invalid token: [node:something]<br/> My referenced text with square brackets: [non-token content]<br/>
- Status changed to RTBC
10 months ago 2:58pm 7 February 2024 -
slucero →
committed 620ea798 on 9.1.x authored by
firewaller →
Issue #3418973 by slucero, firewaller, minsharm: Make token clear option...
-
slucero →
committed 620ea798 on 9.1.x authored by
firewaller →
- Status changed to Fixed
10 months ago 2:59pm 7 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.