Skip to content

Commit

Permalink
MDL-59132 mod_feedback: Fix anonymous responses numbering
Browse files Browse the repository at this point in the history
This was done correctly by the web scrip but not by the WS.
  • Loading branch information
jleyva committed Jun 8, 2017
1 parent df6749b commit 0fca28e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/feedback/classes/external.php
Expand Up @@ -1149,6 +1149,8 @@ public static function get_responses_analysis($feedbackid, $groupid = 0, $page =

$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(
Expand Down

0 comments on commit 0fca28e

Please sign in to comment.