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

Assign "submit for grading" button stays visible after deadline has passed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.3, 2.4, 2.5
    • Assignment
    • MySQL
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Hide

      Fixing the problem is very easy, and I would appreciate if this made it into the trunk:
      In mod/assign/locallib.php, line 3309 (for Moodle 2.5), change
      $showsubmit = ($submission || $teamsubmission) && $showlinks;
      to be
      $showsubmit = ($submission || $teamsubmission) && $showlinks && $this->submissions_open();

      Show
      Fixing the problem is very easy, and I would appreciate if this made it into the trunk: In mod/assign/locallib.php, line 3309 (for Moodle 2.5), change $showsubmit = ($submission || $teamsubmission) && $showlinks; to be $showsubmit = ($submission || $teamsubmission) && $showlinks && $this->submissions_open();
    • Easy
    • Hide

      As a student, submit a solution before the "due date" and the "cut-off date" (if set). Set "Require students click submit button" to Yes.
      Wait until the due date (and, if used, the cut-off date) has passed. The submission button still remains visible.
      Click on the submission button after the due date and (if used) the cut-off date. The submission will appear to have been submitted after the last legal submission time, possibly even days later. Unless the grader looks at the log, this may seem to be a "hacked/illegal submission".

      Show
      As a student, submit a solution before the "due date" and the "cut-off date" (if set). Set "Require students click submit button" to Yes. Wait until the due date (and, if used, the cut-off date) has passed. The submission button still remains visible. Click on the submission button after the due date and (if used) the cut-off date. The submission will appear to have been submitted after the last legal submission time, possibly even days later. Unless the grader looks at the log, this may seem to be a "hacked/illegal submission".

      Even though a "due date" is set, when students are "required to click the submit button", they can do so after the deadline. This causes their submitted file to display as "late"; teachers cannot tell if the actual submission was on time (and the "submit button click" was after the deadline), or if the student actually missed the deadline.

      This may seem like a "minor issue", but for our large courses and mostly not perfectly "Moodle-aware" student graders, this is a large issue: it often seems as "if the student managed to cheat and submit late". For privacy reasons, the graders cannot access the log to verify if this was actually the case.

      Steps to reproduce under all Moodle versions since 2.3, including 2.4.* and 2.5.*:
      1. Create a new assignment, enable "due date" and set it to a date, and set "Prevent late submissions" to "Yes". The actual type of the submission (online text / file submission) does not matter. Set the option "Require students click submit button" to "Yes".
      2. As a student, submit a solution before the due date, but do NOT click on the "Submit" before the due date.
      3. As a student, wait until the deadline is past; the form will display a message "Assignment is overdue by: ...". Note that the "Submit assignment" button remains visible.
      4. As a student, press the "Submit assignment" button and confirm your choice by clicking "Continue". Your assignment is now labelled as "late".
      5. As a teacher, access the student submission for grading. Even the file that was uploaded on time is now flagged as "late".

      I also propose a quick fix for this problem. This causes the "submit button" to disappear and thus also keeps the time stamp of the file valid. Additionally, it does NOT set the student submission to "submitted for grading", which means that if the deadline is set to a later date, the student can still edit his or her solution, instead of seemingly having pressed the "submit" button.

      In mod/assign/locallib.php, method "view_student_summary($user, $showlinks), change line 2089 from

      $showsubmit = $submission && ($submission->status == ASSIGN_SUBMISSION_STATUS_DRAFT) && $showlinks;

      to

      $showsubmit = $submission && ($submission->status == ASSIGN_SUBMISSION_STATUS_DRAFT) && $showlinks && $this->submissions_open();

      That is, include the information whether the submission is still "open" into the determination whether the submit button should be shown or not.

        1. MOODLE_24_TABLE_after.png
          40 kB
          Gilles-Philippe Leblanc
        2. MOODLE_24_TABLE_before.png
          45 kB
          Gilles-Philippe Leblanc
        3. master_after.png
          43 kB
          Gilles-Philippe Leblanc
        4. master_before.png
          48 kB
          Gilles-Philippe Leblanc
        5. v252_after.png
          73 kB
          Gilles-Philippe Leblanc
        6. v252_before.png
          50 kB
          Gilles-Philippe Leblanc

            Unassigned Unassigned
            roessling Guido Roessling
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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