Uploaded image for project: 'Magnolia Templating Essentials'
  1. Magnolia Templating Essentials
  2. MTE-13

SwitchableField used for the Link component will always persists any property set and thus doesn't follow the convention

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • models
    • None

    Description

      When using default fields in dialogs empty inputs won't be persisted in JCR – removing existing values from fields will actually be removed.

      The switchable field (info.magnolia.ui.form.field.SwitchableField) and its transformer (info.magnolia.ui.form.field.transformer.composite.SwitchableTransformer) used for the link field behave differently:

      E.g. when setting an internal link and switching to external link afterwards (and also providing a value for both links), both link properties will be persisted in JCR.

      An custom transformer would solve this.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD