Completion Progress Block and multiple submission Feedback activity

Completion Progress Block and multiple submission Feedback activity

by Ala Bala -
Number of replies: 0

Using Moodle 3.2.2+ and Completion Progress block 216090500.

In a course there is a Feedback activity that allows non-anonymous multiple submissions. After a student submitted two or more answers, if the teacher goes to "Overview of students" and clicks on the progress bar corresponding to that activity, the following error occurs:

Multiple records found, only one record expected.
More information about this error
Debug info: SELECT * FROM {feedback_completed} WHERE feedback = ? AND anonymous_response = ? AND userid = ?
[array (
0 => '14',
1 => 2,
2 => 32,
)]
Error code: multiplerecordsfound
Stack trace:
  • line 1561 of /lib/dml/moodle_database.php: dml_multiple_records_exception thrown
  • line 1523 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
  • line 1502 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 86 of /mod/feedback/classes/completion.php: call to moodle_database->get_record()
  • line 63 of /mod/feedback/show_entries.php: call to mod_feedback_completion->__construct()

The multiple records are legit and correct, as I checked them directly in the database. Moreover, a report produced with the Custom reports plugin shows the expected results, namely the multiple submissions by user 32, so I think the problem is with the Completion Progress block.

Is there a way to fix that?

Thank you.


Average of ratings: -