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

Decored FieldDefinition can no more use class name to perform comparison

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 5.1
    • 5.0
    • None
    • None

      In FromBuilder, the following statement will always be false even if the fieldDefinition is a ConfiguredFieldDefinition.

      if (fieldDefinition.getClass().equals(ConfiguredFieldDefinition.class)) {

      This is due to the fact that i18n decorate now the fieldDefinition.

      Only way to solve this is to undecorate the definition before performing the if statement.

        Acceptance criteria

              ehechinger Eric Hechinger
              ehechinger Eric Hechinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD