4.1.2 - Course Module Views Not Removed by Course Reset

4.1.2 - Course Module Views Not Removed by Course Reset

by Josiah Wiedenheft -
Number of replies: 2
Hello!
It appears that entries on the course_modules_viewed table are not deleted when a course is reset. This caused us some confusion, as activities that base their completion status on whether a user has viewed that activity will appear to be still be "completed" for that user even after a reset is performed. For context: this issue was first noticed with a course we use to host yearly training, where we want the participants' completion for each activity to be reset each time they take the course. We have historically just reset the course in-place, rather than creating a new course each year.
Is this intended behavior, or a bug in version 4.1.2? I wanted to raise the matter here before opening a bug tracker issue about this.
Average of ratings: -
In reply to Josiah Wiedenheft

Re: 4.1.2 - Course Module Views Not Removed by Course Reset

by Ken Task -
Picture of Particularly helpful Moodlers
'Fore-ever' courses will present issues such a you've discovered.
In a FE course, you might need to change your proccess for getting it cleaned up and ready for the next session.

Export all users in the course.   You will use the export to re-enroll them in the reset course.
When re-setting, include everything ... students and their work.

Once course is reset, import the exported users - set the start date - and should be ready!

Haven't seen a plugin for such .. but don't think this is a bug!
You could, however, attempt a feature request! smile
Maybe ...

'SoS', Ken

In reply to Ken Task

Re: 4.1.2 - Course Module Views Not Removed by Course Reset

by Séverin TERRIER -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi,

In my opinion, the aim of reset course IS to delete all content made by students, so that the course can be used again as if it was a new course.

So, unless i'm wrong, i would think it's a bug, and should be reported. Perhaps in detailed analyse of the problem, a specialist will argue it's not a bug, and the way it's supposed to work, but you'll be sure then.

Séverin