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

I18nNodeWrapper can't handle array-Properties

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    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