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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4.4, 2.7.2
    • Fix Version/s: None
    • Component/s: Backup, Course completion
    • Labels:
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_27_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                colin Colin Campbell
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                8 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: