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

Non-selected values are kept in switchable field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3.0, 6.2.37
    • 6.2.5
    • None
    • None

      Steps to reproduce

      1.  Create a switchable field in a custom app detail form containing complex fields (use attached module, navigation-app the creation element form)
      2.  Open the form, select one of the options and save a value
      3. Check in JCR browser the stored value under /baseNavigationLinkSite
      4. Edit the created element by selecting another option, enter a new value and save.
      5. Check in JCR browser the new value

       

      Expected results

      Previous value should have been overwritten by the new value

      Actual results

      Both values are kept

      Workaround

      Select field property actually points to the last stored option which would serve to discard values that haven't been chosen.

      Development notes

      Despite using currentItemProvider as indicated in docs, values for each option are kept

        Acceptance criteria

              ajuran Antonín Juran
              jayala Jonathan Ayala
              Nucleus
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD