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

mod_assign privacy export attemptnumber are incorrect with respect to the export path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE

      Description

      This is a follow up minor bug report from testing MDL-61308.

      The mod_assign exported JSON files for grades and submission contain an attemptnumber value that is incorrect (off by 1) with respect to the path of the exported JSON file.

      e.g.

      cat "./Assignment Assign 3 - With Retakes Allowed/studentsubmissions/4/attempt 1/grade/data.json" | json_pp
      {
         "grader" : 13,
         "timemodified" : "Wednesday, 2 May 2018, 10:56 AM",
         "grade" : "8.00000",
         "timecreated" : "Tuesday, 1 May 2018, 9:40 PM",
         "attemptnumber" : "0"
      }
       
      cat "./Assignment Assign 3 - With Retakes Allowed/studentsubmissions/4/attempt 2/grade/data.json" | json_pp
      {
         "grade" : "49.99000",
         "timemodified" : "Wednesday, 2 May 2018, 10:58 AM",
         "timecreated" : "Wednesday, 2 May 2018, 10:56 AM",
         "attemptnumber" : "1",
         "grader" : 13
      }
       
      cat "Assignment Assign 6 - With Blind Marking./attempt 1/submission/data.json" | json_pp
      {
         "latest" : "Yes",
         "status" : "No submission",
         "timemodified" : "Tuesday, 1 May 2018, 9:44 PM",
         "timecreated" : "Tuesday, 1 May 2018, 9:44 PM",
         "attemptnumber" : "0",
         "groupid" : "0"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              zig Zig Tan (Inactive)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: