-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Component "formSummary" do not work correctly on Windows when need to display data from "formSelection" component.
Problem is that in the text area of "formSelection" where labels and values are added, new line separator is always "\n". But then in "info.magnolia.module.form.templates.components.FormSummaryModel", new line separator is choose dynamically with "System.lineSeparator()" and for windows this is "\r\n".
Changing the "LINE_SEPARATOR" static field in the model class to use "\r\n|\r|\n|\x0085|\x2028|\x2029" same as in "formSelection.ftl" should fix the issue.
How to reproduce it:
Deploy Magnolia 5.4.8 on Windows. Open page "/travel/book-tour/meal" and add component "formSummary". Then go to the page "/travel/book-tour", fill some data in the form and select some checkboxes. Click on "Next Step" and in the "formSummary" component, values from selected checkbox and select fields will not be shown.
- is superseded by
-
MGNLFORM-277 Summary component - do not display complex fields values
- Closed