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

AssetLinkTag doesn't take into account if asset versions are scheduled

    Details

      Description

      AssetLinkTag between JournalArticles links two AssetEntries. If a JournalArticle has more than one version, then AssetLinkTag is unable to know if the link has to be shown

      Steps to reproduce
      ==================
      Add a journal article display
      In j.article display, create a new article (article1) with one related asset (relatedAsset1) . Now you can see relatedAsset1 in the journal article display.
      Go to edit the created article1.

      • Set publish date to tomorrow
      • Add a new related asset "related asset tomorrow"
      • Save. A new version (v 1.1) is created

      Expected result
      =================
      Content result from v1
      Related assets from v1

      Current result
      =================
      Content result from v1
      Related assets from v1.1

      This behavior is caused because related the assetEntry from v1 is the same that the assetEntry from v1.1, and AssetLink doesn't have publish date

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                victor.miranda Victor Miranda (Inactive)
                Reporter:
                victor.miranda Victor Miranda (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 16 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE GA1
                  6.2.X EE