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

Is GRADE_UPDATE_ITEM_DELETED useful or can it be deleted?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3
    • Component/s: Gradebook
    • Labels:
    • Database:
      Any
    • Testing Instructions:
      Hide

      Check that you have debugging set to developer.

      Go into a course that has at least one student.

      Add an LTI activity that uses grades. (please see MDLQA-1419 - contains instructions to add a particular LTI 'dummy')

      Grade a student.

      Delete the activity.

      Check you get no errors.

      Show
      Check that you have debugging set to developer. Go into a course that has at least one student. Add an LTI activity that uses grades. (please see MDLQA-1419 - contains instructions to add a particular LTI 'dummy') Grade a student. Delete the activity. Check you get no errors.
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-31362_unused_constant

      Description

      GRADE_UPDATE_ITEM_DELETED isnt really used in code. Its defined in /lib/grade/constants.php but never used.

      Is it meant to be returned when a grade item is deleted? Or is it meant to be returned when you try to update a grade item that has been deleted? Or is it pointless so it can be safely removed?

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12