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

Lesson Essay Question Can't be Graded

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      In the lesson module, a teacher will get the error Error: could not find grades if they try to mark a lesson essay before the student has completed the lesson.

      When the teacher goes to the lesson screen, they will see that there is an essay to mark even if the student hasn't completed the lesson. If they try to mark the essay, they will get that error. The problem stems from the code trying to 'update' the grade record. Because the student hasn't completed the rest of the lesson, the record doesn't exist yet, and generates the error.

      To fix it, either the lesson should not allow the essay to be marked until after the lesson has been completed, or it should create a grade record if one doesn't exist.

      mike

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: