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

Tags are saved with parent groupId, regardless of scope

    Details

      Description

      Description:
      When saving assets scoped to a specific page, any associated tags are scoped to the parent groupId, rather than the specific page. This issue was uncovered by LPS-68514.

      Steps to Reproduce:

      1. Create a new page called "Test Blogs"
      2. Add the Blogs portlet to the page
      3. Set the scope of the Blogs portlet to Page Scope: "Test Blogs"
      4. Add the Tags Navigation portlet the page
      5. Set the scope of the Tags Navigation portlet to Page Scope: "Test Blogs"
      6. Create a new blog "Blog A" and tag it with a new Tag "Tag 1" in the "Test Blogs" page
      7. Go to "Test Blogs" page

      Expected Results:
      "Tag 1" is displayed in the Tags Navigation Portlet

      Actual Results:
      "Tag 1" is not displayed in the Tags Navigation Portlet. Further, setting the portlet's scope back to the parent group will display the tag. Even further, querying the tag from the database shows the tags groupId is set to the parent's groupId, whereas the blog is scoped to the "Test Blogs" page.

      Master:
      Reproducible
      18acf8c06ee84d5d1e6df83a287012a546cd124a
      ee-7.0.x:
      Reproducible
      ad4b1c33e51272ff99a638485a7ef16978c2ecef

        Attachments

        1. fix.png
          fix.png
          23 kB
        2. reproduce.png
          reproduce.png
          34 kB

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              christopher.kian Christopher Kian
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 29 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  7.1.X
                  Master