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

Impossible to rebuild category tree programmatically

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.0.11 EE
    • Fix Version/s: None
    • Component/s: Asset Framework, Categories
    • Labels:
      None

      Description

      Categories are created using this code:
      AssetCategory assetCategory = AssetCategoryLocalServiceUtil.addCategory(
      getDefaultUserId(), parentCategoryId, titleMap,
      assetVocabulary.getVocabularyId(), null, serviceContext);

      At this time, categories have a wrong position in tree (leftCategoryId and rightCategoryId in database)

      There is no method rebuildTree (as in OrganizationLocalServiceUtil) to rebuild this category tree.

      Only a manual creation / deplacement in back office would rebuild this tree.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            frinux frinux (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              10 years, 22 weeks, 5 days ago

                Packages

                Version Package