Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6279

MultiValue does not persist the leading zero when using ByLexicographicallyIndexedChildNodes (0, 1 instead of 00, 01)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • None
    • None
    • Yes

    Description

      Steps to reproduce

      1. Use the attached form configuration.
      2. Open the form and persist some values
      3. Check JCR

      Expected results

      There should be a multifield with subnodes like 00, 01

      Actual results

      The subnodes are 0, 1, 2 and that means the strategy does resolve them when opening such form. 

      Development notes

      One thing that could be happening is that if somewhere along the way if the value is considered as a number, the leading zero would be dropped. However, I tried using propertyNameDecorator as PrefixNameDecorator and even though a word preceded the number, it would still be single digit instead of two digit.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              sdemocko Šimon Demočko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 50m
                    50m