Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-361

Preview as visitor: field event is not getting current data when using composite fields in valueField

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • None
    • None
    • None
    • Kromeriz 83
    • 3

    Description

      In preview as visitor, if there is a valueField made of a composite field, the current change are not taken into account, always the previous selection is gotten.

      On PreviewParametersPresenter:

      private Field.ValueChangeListener valueChangeListener = new Property.ValueChangeListener() {
              @Override
              public void valueChange(Property.ValueChangeEvent event) {
                  eventBus.fireEvent(new PreviewChangedEvent(itemDataSource));
              }
          };	
      

      itemDataSource has the previous value not the current one, so the preview is not updated properly.

      Attached you can find an example of fieldvalue config.modules.personalization-traits.traits.mytrait.valueField.xml . With this configuration if you set a breakpoint in above code you are able to see that itemDataSource doesn´t have the correct information.

      This issue seems to be similar to MGNLPN-304.

      More information can be found in support ticket SUPPORT-7162.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                miruela Mercedes Iruela
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD