-
Bug
-
Resolution: Fixed
-
Blocker
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-77789-master -
-
HQ 2023 Sprint i1.3 Moppies
In H5P activity, when a new attempt is created when sending xAPI statements, the function wipe_states is called. But right now the userid is not supplied to this function, so it deletes the states for all users.
How to reproduce:
- As admin, enable saving content state in the site.
- Create an H5P activity with tracking enabled.
- Enrol 2 students in the course.
- Open the H5P activity with both users, do something without finishing the activity and then leave the activity so the state is saved.
- Check the xapi_states table in the DB, you should see there are 2 states stored for that activity.
- With one of the users, open the activity and finish it.
- Check the xapi_states table in the DB again, you should see that both states have been deleted.