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

Summary component - using labels instead of "field names" as identifiers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • 2.2.x
    • 1.4.5
    • field

      Intro: There are cases when a user wants two fields to have the same name. One obvious would be having two fieldsets (one for a billing address & one for shipping address) having the same fields (fname, lname, street & so on).

      Problem: When adding two fields with different field names but the same label, the summary page will only display one of the fields value.

      Source of issue: I believe this is coming from info.magnolia.module.form.templates.components.FormSummaryModel, templateParams.put(title, value); - line 186 - templateParams matches labels to values, so when we have two labels of the same name the value of the first one is overriden

      Note: The summary component does seem to have quite a few issues (may have been left out for a while) & might need to be recoded.

        Acceptance criteria

              Unassigned Unassigned
              adrien_be Adrien Berthou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: