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

latest flag not correctly set for group submissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.3
    • Assignment
    • MOODLE_39_STABLE

      Database entries for group submissions do not seem to have the latest flag correctly set.
      Instead it seems like the flag is always set on the first attempt.
      This leads to functions using said bit to not get the latest attempt.

      Also see https://tracker.moodle.org/browse/MDL-70110?focusedCommentId=824569&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-824569 for an excerpt from the database. That issues setup part of the testing instructions can also be expanded by submitting another attempt after grading the first to get the desired database state.
      While the function in the linked issue does not currently use the latest flag it could also be simplified to use it.

       

      Update: When the attempt is reopened the latest flag (assign_submission) will be updated for each user in the group, but the group entry (with an id of 0) will not.

      How to replicate the issue

      1. As an admin, create a course.
      2. Enroll a student and a teacher.
      3. Create a group, and add the student.
      4. Create an assignment with "Students submit in groups" -> Yes and "Additional attempts" -> Manually
      5. As the Student, go to the Assignment and submit any file.
      6. As the Teacher got to assignment and click on 'View all submissions'
      7. In the submission list, 'Edit' -> 'Allow another attempt' in the Student's submission row.
      8. As Student A, go to the Assignment -> 'Add a new attempt' and submit a new file.
      9. The record for second attempt is not set "1" as latest.

            Unassigned Unassigned
            septatrix septatrix
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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