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

Upload courses does not properly set Completion tracking course default

XMLWordPrintable

    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • wip-MDL-46495-master
    • Hide
      1. Set default for "Enable completion tracking" to Yes (Site admin>Courses>Default course settings)
      2. Use attached CSV file to upload a course
      3. On the second step of the course upload make sure you can see "Enable completion" in the default settings
      4. Create the course and make sure it is created with enabled completion
      5. Delete the course
      6. Upload the course using CLI script and make sure it is created with enabled completion:

      php admin/tool/uploadcourse/cli/uploadcourse.php --mode=createnew --file=PATHTOFILE

      Show
      Set default for "Enable completion tracking" to Yes (Site admin>Courses>Default course settings) Use attached CSV file to upload a course On the second step of the course upload make sure you can see "Enable completion" in the default settings Create the course and make sure it is created with enabled completion Delete the course Upload the course using CLI script and make sure it is created with enabled completion: php admin/tool/uploadcourse/cli/uploadcourse.php --mode=createnew --file=PATHTOFILE

      When using the bulk course creation tool Upoad courses, the site course default setting of Completion tracking set to Yes is not properly set but instead the newly created courses have it set to No.

      To reproduce:

      1) Enable Completion tracking in Site admin > Advanced features and in Site admin > Courses > Course default settings > Completion tracking = Yes

      2) Do a bulk upload of test courses with the minimal fields required (shortname, fullname, category) in Site admin > Courses > Upload courses.

      Sample upload file:
      shortname,fullname,category
      test101,Test 101,1
      test102,Test 102,1
      test103,Test 103,1

      3) Confirm that in the created courses in Course admin > Edit settings > Completion tracking that 'Enable completion tracking' is still set to No.

      Desired result:

      It should honor the course default settings set at the site level in the same way as a manually created course does.

      It would be nice if the ability to set Completion tracking was also an option in the defaults area during the upload process in that same way that other settings like Gradebook and Groups is.

      Workaround:

      Explicitly forcing completion in the upload file (enablecompletion = 1) does properly work.

      Forum topic: https://moodle.org/mod/forum/discuss.php?d=264421

            marina Marina Glancy
            wmrandth Unknown
            Ankit Agarwal Ankit Agarwal
            Dan Poltawski Dan Poltawski
            John Okely John Okely
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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