alfio-event / alfio-event/alf.io
Additional Fields to Collect cannot be edited in the Template Editor
- 主要語言
- Java
- 星號
- 1.6k
- 分支
- 396
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Describe the bug**
I am using alf.io to host a car show and we would like to display the additional fields we collected. For our purposes, this is the car's make/model/year.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Templates
2. Select a Template such as Ticket_PDF
3. Try to add an additional field (note: This is not documented but I found it in the source code as "additional-fields" with:
`{{additional-fields.make`}}
4. Press preview
5. You will get an error saying "field does not exist"
**Expected behavior**
You can preview the template
**Workaround**
Using the devtools in the browser, you can unhide the save button and save the updated template. The additional field then works as expected and displays in the final rendered template the registrant receives.
**Potential Fix**
I think this is happening due to this line passing an empty map into the template editor: https://github.com/alfio-event/alf.io/blob/1cc53b7ce3673cc30aa6d7c3cb006d78c4909db9/src/main/java/alfio/util/TemplateResource.java#L201
We should be passing the collection of fields.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。