Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5993

I18nNodeWrapper can't handle array-Properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.3.11, 5.4.3
    • 5.3.5
    • None
    • Basel 10
    • 8

    Description

      If you have a multi-value property, I18nNodeWrapper will always return the default values. Problem is, that in AbstractI18nContentSupport, the property will be checked if empty with

      StringUtils.isEmpty(PropertyUtil.getValueString(nd))

      Since the value is an array, PropertyUtil.getValueString will return null and therefore the value is empty. This invalidates the property and AbstractI18nContentSupport will then fall back to the default language.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              sang.ngo Sang Ngo Huu
              ademasi Adi De Masi
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - 4d
                    4d
                    Remaining:
                    Time Spent - 2d 3h Remaining Estimate - 1d 5h
                    1d 5h
                    Logged:
                    Time Spent - 2d 3h Remaining Estimate - 1d 5h
                    2d 3h