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

enrol/database plugin does not load enablecompletion from coursedefaults

XMLWordPrintable

    • MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • MDL-59070-master
    • 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. 

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

            lucaboesch Luca Bösch
            fdks234 fdks 234
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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