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

Calling deprecated make_categories_list() in badges

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
      None
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      Noticed this error while testing: MDL-39207.

      Adding 'completing a set of courses' criteria in badge produces the following error:

      Global function make_categories_list() is deprecated. Please use coursecat::make_categories_list() and coursecat::get_parents()
       
          line 3524 of /lib/deprecatedlib.php: call to debugging()
          line 86 of /badges/criteria/award_criteria_courseset.php: call to make_categories_list()
          line 45 of /badges/criteria_form.php: call to award_criteria_courseset->get_courses()
          line 191 of /lib/formslib.php: call to edit_criteria_form->definition()
          line 78 of /badges/criteria_settings.php: call to moodleform->moodleform()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybozhko Yuliya Bozhko
                Reporter:
                rwijaya Rossiani Wijaya
                Participants:
                Component watchers:
                Yuliya Bozhko, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: