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

enrol/database plugin does not load enablecompletion from coursedefaults

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Set up

      • Access as an admin.
      • Go to Site Administration -> Plugins -> Manage Enrol Plugins and enable external database.
      • Click settings next to "External Database" . Fill in the details for external database course sync.
      • Go to Site administration -> Courses -> Course default settings and ensure the "Completion tracking" is set to "Yes".

      Testing scenario

      1) In the remote database, add a record that contains a value for course column that does not exists in Moodle, so that you can trigger creation of the course.

      2) From command line, execute "/usr/bin/php /path/to/moodle/enrol/database/cli/sync.php".

      • Check the newly created course has completion tracking enabled. 
      Show
      Set up Access as an admin. Go to Site Administration -> Plugins -> Manage Enrol Plugins and enable external database. Click settings next to "External Database" . Fill in the details for external database course sync. Go to Site administration -> Courses -> Course default settings and ensure the "Completion tracking" is set to "Yes". Testing scenario 1) In the remote database, add a record that contains a value for course column that does not exists in Moodle, so that you can trigger creation of the course. 2) From command line, execute "/usr/bin/php /path/to/moodle/enrol/database/cli/sync.php". Check the newly created course has completion tracking enabled. 
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59070-master

      Description

      the following line is missing in enrol_database_plugin_base::sync_courses() when not using a template course:
      $template->enablecompletion = $courseconfig->enablecompletion;

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  19/Mar/18