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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD