jpahullo / moodle-tool_mergeusers

Merge users script for Moodle

Home Page:https://moodle.org/plugins/view.php?plugin=tool_mergeusers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duplicated value when merging grades

jpahullo opened this issue · comments

I detected some notice from Moodle for duplicated value like this just today:

Did you remember to make the first column something unique in your call to get_records? Duplicate value '1318' found in column 'authorid'.

    line 1292 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
    line 1159 of /mod/workshop/lib.php: call to mysqli_native_moodle_database->get_records_sql()
    line 1403 of /lib/gradelib.php: call to workshop_update_grades()
    line 472 of /admin/tool/mergeusers/lib/mergeusertool.php: call to grade_update_mod_grades()
    line 271 of /admin/tool/mergeusers/lib/mergeusertool.php: call to MergeUserTool->updateGrades()
    line 192 of /admin/tool/mergeusers/lib/mergeusertool.php: call to MergeUserTool->_merge()
    line 135 of /admin/tool/mergeusers/index.php: call to MergeUserTool->merge()

I record it here for addressing it in the future. I do not know if this is a real problem or it is not.

Jordi