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

Completion tracking role not getting restored correctly. Breaking course access for some.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.4, 2.7.2
    • Backup, Course completion
    • MOODLE_24_STABLE, MOODLE_27_STABLE

      When backing up and restoring a course with a course completion tracking role, the role appears in mdl_course_completion_criteria as zero. This causes an error that breaks course access for anybody enrolled in the course.

      The problem does not occur if the course is backed up with user data and some user has the completion tracking role.

      Part of the problem, at least, appears to be that the role does not get into roles.xml in the backup file due to the order of the steps in backup_final_task. When I moved backup_final_roles_structure_step further down, the role appeared in roles.xml. That did not solve the problem completely, however, so something else is going on.

            Unassigned Unassigned
            colin Colin Campbell (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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