MDL-59132 mod_feedback: Fix anonymous responses numbering

This was done correctly by the web scrip but not by the WS.
This commit is contained in:
Juan Leyva 2017-06-08 11:14:45 +01:00
parent 78ab4f741b
commit 7c3c0fa323

View File

@ -1149,6 +1149,8 @@ class mod_feedback_external extends external_api {
$feedbackstructure = new mod_feedback_structure($feedback, $cm, $course->id);
$responsestable = new mod_feedback_responses_table($feedbackstructure, $groupid);
// Ensure responses number is correct prior returning them.
$feedbackstructure->shuffle_anonym_responses();
$anonresponsestable = new mod_feedback_responses_anon_table($feedbackstructure, $groupid);
$result = array(