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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.4.6, 2.5.2
    • 2.4.5, 2.5.1
    • Assignment
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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.

      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

            damyon Damyon Wiese
            vandaleh Dave Laurie
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.