[MGNLFORM-391] Form - freemarkerParams only works in the last tab Created: 27/Jun/23  Updated: 26/Jan/24

Status: Open
Project: Magnolia Form Module
Component/s: None
Affects Version/s: 2.7.7
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: AuthorX Support
Team: AuthorX

 Description   

Steps to reproduce

Expected results

The static field "Available fields for freemarker syntax:" (freemarkerParams) on tab "E-Mail" and tab "Confirmation E-Mail" shows the available freemarker variables which can be used in the mail template.

Actual results

Only the last tab "Confirmation E-Mail" shows the available freemarker variables which can be used in the mail template. If you change the order of the two tabs, you will see that the last tab always shows the variables while the other tab shows no variables.



 Comments   
Comment by Matthias Neumeister [ 26/Jan/24 ]

The reason for this behaviour seems to be that the two fields have the same name.

Changing the name of the 'freemarkerParams' field in the tab "Confirmation E-Mail" to 'confirmFreemarkerParams' (other fields in this tab are already prefixed with 'confirm-'), fixes this issue.

Generated at Mon Feb 12 05:39:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.