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

delete_course() includes badges function without including library

    XMLWordPrintable

    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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ybozhko Yuliya Bozhko
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

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