Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-124669

Web content structure Select field: always the default value is shown when adding a new web content translation

    Details

      Description

      When using a web content structure with a Select field with a predefined (aka default) value, and adding translations to a web content where for the default language we already chose another value in that field, the new translations are always opened with the default option in the field, not with the option chosen for the default version (language) of that web content.
      This didn't use to be like that with 6.2. There it was working as expected: the option chosen for the default language was taken into consideration.

      Steps to reproduce:
      1. Create a new web content structure "my structure" and place a Select field on it.
      2. Configure the field: in the Predefined Value section, choose option 2. Save the structure.
      3. Edit the structure, give it a French title "ma structure", and click Add Translation and choose French.
      4. Rename the three options to "option un", "option deux", "option trois". Save.
      5. In the Predefined Value, choose "option deux". Save.
      6. Create a dummy template for the structure.
      7. Start creating a new web content from this structure: "my content".
      8. In the select field choose 'option 1'. Publish.
      9. Edit the web content article: in the language switcher above the select field, choose French.
      Result: the selected option changes to "option deux" (because that is defined as the default option)
      Expected: the selected option should be "option un" (because this corresponds to the "option 1" saved from the English version of the web content). And this is how it worked in 6.2.

        Attachments

          Activity

            People

            Assignee:
            brittney.nguyen Brittney Nguyen
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              18 weeks, 2 days ago

                Packages

                Version Package
                7.2.10 DXP FP11
                7.2.10.3 DXP SP4
                7.2.X
                7.3.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                Master