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

Unable to delete course with edited grade letters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      When attempting to delete courses, if the course has been changed with a custom grade letter setting the delete attempt will fail with the following errors:
       

      Exception - Call to undefined method mysqli_native_moodle_database::delete_record()

      More information about this error
       
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:

      • line 1404 of /lib/gradelib.php: Error thrown
      • line 4924 of /lib/moodlelib.php: call to remove_grade_letters()
      • line 4840 of /lib/moodlelib.php: call to remove_course_contents()
      • line 67 of /course/delete.php: call to delete_course()

      Steps to reproduce:

      1. Inside of a course, click on gradebook setup
      2. Click on Letters
      3. Click on Edit grade letters
      4. Click on override site defaults
      5. Click on save
      6. Attempt to delete the course

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              smorris12 Steve Morris
              Peer reviewer:
              Víctor Déniz Falcón
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: