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

Deprecated function get_categories has no replacement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5.3
    • 2.5.2, 2.6
    • Course

      When the coursecat class was created as part of MDL-38147 it deprecated the function get_categories(). In the deprecation documentation it said that these would be an equivalent call to return all the categories on the system:

      coursecat::get($categoryid)->get_children(array('recursive' => true))
      coursecat::get(0)->get_children(array('recursive' => true))
      

      However, the code for get_children never actually implemented the handling of the 'recursive' option.

      EDITED: After discussion (see below) we decided not to re-implement this functionality and change phpdocs to the deprecated function instead

            marina Marina Glancy
            rex Rex Lorenzo
            Rex Lorenzo Rex Lorenzo
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.