Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33776

get_categories does not apply criteria filtering when addsubcategories is specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3.1
    • Component/s: Web Services
    • Labels:

      Description

      The summary says it all, I guess.
      When addsubcategories is specified, the criteria should also be applied to the subcategories (take for instance category visibility).
      Currently, if we specify criteria['visible'] = 1 and addsubcategories = 1 (meaning get all visible categories and subcategories), only top categories get filtered for visibility, meaning that non visible subcategories will be returned as well. This should not happen.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jul/12