Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9.9, 3.0.7, 3.1.3, 3.2
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-57576-33-updatefeedbackfile -
Description
If you try to resend the same feedback file to a student, it fails due to:
ERROR: duplicate key value violates unique constraint "mdl_file_pat_uix"
The probable cause is not checking if the user already has that file before trying to copy again.
To reproduce:
1) Create an assignment (allow sending feedback files)
2) Select a student, send any file as a feedback file – it should succeed.
3) Try again, same student, same file – it should fail.