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

latest flag not correctly set for group submissions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.3
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            septatrix septatrix
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

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