Uploaded image for project: 'Live Copy'
  1. Live Copy
  2. LIVECOPY-305

Can't protect inner fields of a multifield if PropertyNameDecorator is configured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.2.8
    • 3.2.7

    Description

      Steps to reproduce

      Configure a form field like the following:

      properties:
        - name: typeExternal
          $type: compositeField
          propertyNameDecorator: info.magnolia.ui.field.PrefixNameDecorator
          i18n: false
          itemProvider:
            $type: currentItemProvider
            createIfMissing: true
          properties:
          - name: LinkText
            i18n: true
            $type: textField
          - name: Link
            i18n: true
            $type: textField
          - name: LinkTarget
            label: Target
            i18n: true
            $type: textField

      Afterwards, trying to protect one of the inner fields won't apply the defined PropertyNameDecorator nor combine the composite field name with the inner field's name.

      Expected results

      Property name is properly generated and protects the field in question.

      Actual results

      Name generated ignores the configured PropertyNameDecorator, resulting on an incorrect property to be ignored.

      Workaround

      Removing the PropertyNameDecorator makes the issue inexistent, so in case of it not being necessary for the use case, removing it works as a workaround.

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jalonso Jesus Alonso
              rgaona Roberto Gaona
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 2h 8m
                    2h 8m

                    Jenkins

                      No builds found.