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

Assignment cutoffdate and allowsubmissionfromdate are not exported

    XMLWordPrintable

Details

    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • wip-MDL-62755-master
    • Hide
      • Make sure to have a course with students enrolled in it.
      1. Create an assignment.
      2. Create an override for a student.
        1. (in the settings menu) or under "Assignment administration > User overrides"
        2. Add a user override.
        3. Make sure to change all settings (Allow submission from, Due date, Cut-off date).
      3. From the command prompt run the attached script for the student that the override was created for. php testfinal.php --username={{put username here}}
      4. Check the output for the assignment in the overrides folder and check that the json file has dates for these three settings.
      Show
      Make sure to have a course with students enrolled in it. Create an assignment. Create an override for a student. (in the settings menu) or under "Assignment administration > User overrides" Add a user override. Make sure to change all settings (Allow submission from, Due date, Cut-off date). From the command prompt run the attached script for the student that the override was created for. php testfinal.php --username={{put username here }} Check the output for the assignment in the overrides folder and check that the json file has dates for these three settings.
    • GDPR Followup Sprint 1

    Description

      https://github.com/moodle/moodle/blob/master/mod/assign/classes/privacy/provider.php#L478

                  if (!empty($overrides->cutoffdate)) {
                      $overrides->cutoffdate = transform::datetime($overrides->cutoffdate);
                  }
                  if (!empty($overrides->allowsubmissionsfromdate)) {
                      $overrides->allowsubmissionsfromdate = transform::datetime($overrides->allowsubmissionsfromdate);
                  }
                  if (!empty($data)) {
                      writer::with_context($context)->export_data([get_string('overrides', 'mod_assign')], $data);
                  }
      

      These are both updating $overrides instead of $data.

      Thanks to danmarsden for pointing this out.

      Attachments

        Activity

          People

            abgreeve Adrian Greeve
            dobedobedoh Andrew Lyons
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 19 minutes
                19m

                Clockify

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