-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
2.2.3
-
MOODLE_22_STABLE
-
The error:
Did you remember to make the first column something unique in your call to get_records? Duplicate value '3' found in column 'id'.
|
line 818 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
|
line 1104 of /lib/completionlib.php: call to mysqli_native_moodle_database->get_records_sql()
|
line 795 of /lib/completionlib.php: call to completion_info->get_tracked_users()
|
line 385 of /course/modedit.php: call to completion_info->reset_all_state()
|
If you look at the SQL generated via completion_info::generate_tracked_user_sql() you can see that any user has more than one role assignment group membership or enrollment, then the SQL will return multiple records for that user.
- duplicates
-
MDL-32107 Completion Info reset state throws debugging error
-
- Closed
-