Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-40

Default values do not work when editing optional areas

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.2
    • Labels:
    • Sprint:
      Basel 17
    • Story Points:
      13
    • Magnolia Release:
      5.4.3

      Description

      UPDATE: The scope of this ticket was reduced to optional areas only. Please see the comment for the reason why and a work-around.


      Unlike components, page and area nodes are created and edited in two distinct steps, so at the moment we don't know when they are actually new, and thus don't apply default values (regardless of field-type).

      This may be a custom behavior to implement specifically in the pages app.

      e.g. using an OptionGroupFieldDefinition and setting default option with the "selected" property:

      If dialog is called from component, it is working. To reproduce: Copy a OptionGroup e.g. from Form Module to a Area Dialog. No Value is selected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ejervidalo Espen Jervidalo
                Reporter:
                tomwespi Tom Wespi
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: