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

Selected value in select field is not chosen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • 5.7, 5.7.1
    • None
    • None

    Description

      Thanks to kchristodoulou in SUPPORT-9295:

      I have noticed lately that when adding in a yaml file a select field as the following

      - name: assetstatus
        fieldType: select
        label: Status
        required: true
        options:
        - name: option1
          value: option1
          selected: true
          label: option1
        - name: option2
          value: option2
          label: option2
        
      

      the selected value is not shown by default when the dialog is opened?

      --> Confirmed issue since it's happening on 5.7.1 also. Function 'buildRemoteOptions' is not take into account when running SelectFieldFactory class.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              viet.nguyen Viet Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.25d
                    0.25d