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

Gradebook does not clean up course preferences

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      When a course is deleted, the following gradebook record types associated to the course are not deleted from the database:

      grade_category

      grade_exceptions

      grade_item

      grade_letter

      grade_preferences

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dougiamas Martin Dougiamas added a comment -

            From Zbigniew Fiedorowicz (fiedorow at math.ohio-state.edu) Thursday, 23 June 2005, 12:15 PM:

            That's because the gradebook records call their course field courseid rather than course. Also the else clause in moodlelib.php corresponds to if($showfeedback) rather than

            if(delete_records())

            From Eloy Lafuente (stronk7 at moodle.org) Friday, 24 June 2005, 01:26 AM:

            That's lightspeed!

            Good bug. B-)

            Just closing it, ciao

            Show
            dougiamas Martin Dougiamas added a comment - From Zbigniew Fiedorowicz (fiedorow at math.ohio-state.edu) Thursday, 23 June 2005, 12:15 PM: That's because the gradebook records call their course field courseid rather than course. Also the else clause in moodlelib.php corresponds to if($showfeedback) rather than if(delete_records()) From Eloy Lafuente (stronk7 at moodle.org) Friday, 24 June 2005, 01:26 AM: That's lightspeed! Good bug. B-) Just closing it, ciao
            Hide
            mblake Michael Blake added a comment -

            assign to a valid user

            Show
            mblake Michael Blake added a comment - assign to a valid user

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: