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

Invalid records in mdl_course_modules_viewed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 4.1.6, 4.2.3, 4.3
    • Backup
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE

      If you try to restore a backup of an activity with user completions, but without users it can't map the userids and defaults to 0.

       

      This causes moodle to try to insert invalid records into mdl_course_modules_viewed and other tables with 0 as the userid. Instead it should just early return in restore_userscompletion_structure_step::process_completion()

            Unassigned Unassigned
            frederikmillingpytlick Frederik Milling Pytlick
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

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