Uploaded image for project: 'Magnolia Data Module (closed)'
  1. Magnolia Data Module (closed)
  2. MGNLDATA-244

Improve handling of IdentifierToPathConverter for DataSelectFieldFactory.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.2
    • 2.2.1
    • None

      Case not yet handled:
      A converter is defined (JCR store the option identifier, and display the value) together with a default value (This default value is displayed the first time the dialog is displayed).

      In this case the default value (Option name) has to be converted to an identifier in createDefaultValue() in order to be supported by the converter.

      How to reproduce:

      • Create a new DataSelectField field (by configuration)
      • This dataSelectField has to
        • define a IdentifierToPathConvertor (the value of the selected option is the Node identifier of the option)
        • point to remote options
        • one of the remote option has to define a default value.

      The first time the dialog containing this field is displayed, the default value configured has to be selected. If no change done, after saving the dialog, the Identifier of the default option has to be saved.

      Provided config file:

      • config.modules.data.config.options.xml: remote options definition (fr is set as default)
      • config.modules.data.dialogs.company.form.tabs.addressTab.fields.select.xml : select field definition set to a company dialog
      • config.modules.ui-admincentral.config.appLauncherLayout.groups.data.apps.companyApp.xml : activate the company app.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: