Merge branch 'MDL-59132-master' of git://github.com/jleyva/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-06-13 00:45:04 +02:00 committed by Dan Poltawski
commit 0c272e07e2

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(