Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-221

Migrator has to access the ControlMigratorRegistry during task execution

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.2.2
    • 2.2.1
    • field
    • None

    Description

      The RadioSwitchControlMigrator uses the ControlMigratorRegistery in order to migrate sub fields. Unfortunately the controlMigrationMap is initialized based on the ControlMigratorRegistery during RadioSwitchControlMigrator class construction and has a restricted migrator visibility.
      Let say that we have the following module dependency:
      Module UI
      Module Form
      Module Data
      Module Custom --> defines a RadioSwitchControl in relation with a Custom control.

      Module form initializes controlMigrationMap with the migrator defined in UI and Form module. The migration of the RadioSwitchControl in the Custom module will fail because the Custom control was not register at the time RadioSwitchControlMigrator was constructed.

      RadioSwitchControlMigrator has to access ControlMigratorRegistery once the Migrator.migrate() method is called and not during construction.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD