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

The web content template used in WCD or Content Display could be deleted

    Details

      Description

      Step to reproduce:

      1. Add a web content template for Basic Web Content structure
      2. Add a web content based on Basic Web Content
      3. Add a content page based on Blank
      4. Add a Web Content Display or Content Display
      5. Select the web content in WCD or Content Display
      6. Select the new template
      7. Navigate to Web Content admin > Templates tab
      8. Click the ellipsis button of template > Delete

      Expected Results:
      There should be an error message shown:
      The template cannot be deleted because it is required by one or more template links.

      Actual Results:
      The template is deleted successfully.

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

        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, 15 weeks, 3 days ago

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master