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

LayoutSet's PageCount is unnecessarily updated after removal of each private missing layout

    Details

      Description

      deleteMissingLayout incorrectly calls:

      LayoutLocalServiceUtil.deleteLayout(layout, privateLayout, serviceContext)

      when the parameters are

      • @param layout the layout
      • @param updateLayoutSet whether the layout set's page counter needs to be
        updated
      • @param serviceContext the service context to be applied

      This causes the page count to be updated after every private layout that is deleted.

      We don't need to update the page count because it does it right after deleteMissingLayout in LayoutImporter#doImportLayouts.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tammy.fong Tammy Fong (Inactive)
                Reporter:
                shinn.lok Shinn Lok
                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:
                  7 years, 9 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B1