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

The selected asset doesn't change in Content field when change the language

    Details

      Description

      Step to reproduce:

      1. Add a new site
      2. Add the first display page template based on Document and Basic Document
      3. Add a Display Page Content fragment to display page template
      4. Publish
      5. Add the second display page template based on Document and Basic Document
      6. Add a Display Page Content fragment to display page template
      7. Publish
      8. Add the first document with an image and select the first display page template as Specific Display Page Template
      9. Get fileEntryId of the first document from DLFileEntry table
      10. Add the second document with an image and select the second display page template as Specific Display Page Template
      11. Get fileEntryId of the second document from DLFileEntry table
      12. Add a page based on Blank
      13. Add a Heading fragment to page
      14. Click the editable field of Heading > Link tab
      15. Select From Content Field in Link field
      16. Click the plus icon of Content field > Documents and Media tab
      17. Select the first document
      18. Select the Display Page URL in Field field
      19. Assert the /en/web/test-site-name/d/${firstFileEntryId} is shown in URL field
      20. Change to es-ES via language selector on control menu
      21. Click the plus icon of Content field > Documents and Media tab
      22. Select the second document
      23. Select the Display Page URL in Field field
      24. Assert the /en/web/test-site-name/d/${secondFileEntryId} is shown in URL field
      25. Change to en-US via language selector on control menu
      26. Assert the title of first document is shown in Content field

      Expected Results:
      The title of first document should be shown in Content field and the /en/web/test-site-name/d/${firstFileEntryId} should be shown in URL field.

      Actual Results:
      The title of second document is shown in Content field and the /en/web/test-site-name/d/${firstFileEntryId} should be shown in URL field.

      Reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal master GIT ID: b2647f091e7982bd5e62dc702105aaa01539014d.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Pavel Savinov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 1 week, 6 days ago

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master