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

Error when attempting to prevent submission changes on view/grade all assignments screen when no submission has been made yet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 2.5.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide

      Create an assignment (24 or 25 only) in a course with at least one student.
      As a Teacher (or admin) go directly to the grading page for the assignment and choose "Prevent submission changes" from the menu for the first student.
      Verify you do not receive an error.

      Show
      Create an assignment (24 or 25 only) in a course with at least one student. As a Teacher (or admin) go directly to the grading page for the assignment and choose "Prevent submission changes" from the menu for the first student. Verify you do not receive an error.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:

      Description

      Apologies if this issue has already been reported. I searched and could not find it.

      PHP catchable fatal error gets thrown when the following steps are followed:

      Create new assignment.
      Set 'Require students click submit button' to yes.
      Go to assignment, click 'View/grade all submissions'.
      In Edit the column for a student who has not yet made a submission, choose the action 'Prevent submission changes'. Causes error.

      Should be an alert that there is no submission yet or something a little more helpful to end user.

      The error is:
      Argument 1 passed to assign_submission_plugin::lock() must be an instance of stdClass, boolean given, called in [dirroot]/mod/assign/locallib.php on line 4464 and defined

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13