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

delete_course() includes badges function without including library

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: Badges
    • Labels:
    • Testing Instructions:
      Hide

      Follow the steps to reproduce in bug description. When hit cancel at the last step, there should be no error.

      Show
      Follow the steps to reproduce in bug description. When hit cancel at the last step, there should be no error.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      delete_course() has badges_handle_course_deletion(), but in some cases badgelib may not be included leading to a fatal error.

      This can be reproduced by

      1. Enabling badges
      2. Doing restore of backup to a new course
      3. On "5. Review" step, hit cancel

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  3 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13