Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      There is a bug in buildAllCategoriesSQL method: in case we have subcategories - we will go into
      if (PropsValues.ASSET_CATEGORIES_SEARCH_HIERARCHICAL) {
      ...
      if (treeCategoryIds.size() > 1) {

      way

      at the end of this "if" continue called - as result, followed code at the end of "for" will not be done:

      if ((i + 1) < categoryIds.length)

      { sb.append(" AND "); }

      and we may have 2 EXIST not joined by "AND" - incorrect SQL error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                akakunin Alexey Kakunin
                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, 31 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.0 CE M3