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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.3.5, 3.4.2, 3.5
    • Assignment
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE

      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"
      }
      

            Unassigned Unassigned
            zig Zig Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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