Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-287

Component "formSummary" do not work correctly on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.3.3
    • None
    • None

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                zarko.ivanoski Zarko Ivanoski
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD