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

Course Reset: course_modules_viewed entries not deleted

XMLWordPrintable

    • HQ 2023 Planning i2 Moppies

      When resetting the data of a given course via /course/reset.php, the information about which users have already viewed certain modules is not deleted. I.e. the data in course_modules_viewed is still present after reset.

      This can result in weird behavior when requiring "viewing" of a certain activity for further progress, etc.

      How to Reproduce:

      1. Create a new course with a Page activity "one" that has completion tracking activated and is marked as completed on view. Create another activity "two" which can only be accessed if "one" is marked completed.
      2. View the activity with a test user. Will show marked as completed successfully. "two" is accessible.
      3. Reset course as admin
      4. Check again with test user. Will show  Done: View for "one" but activity is not marked as completed, thus preventing progressing to next one ("two").

       

            laurent.david@moodle.com Laurent David
            georg.moser Georg Moser
            Amaia Anabitarte Amaia Anabitarte
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 18 minutes
                5h 18m

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