MDL-58888 mod_choice: Sort choice_get_my_response() results by optionid

This commit is contained in:
Jun Pataleta
2017-12-15 15:55:48 +13:00
parent 3af40cc62e
commit d766bbc5b9
+1 -1
View File
@@ -1014,7 +1014,7 @@ function choice_print_overview($courses, &$htmlarray) {
*/
function choice_get_my_response($choice) {
global $DB, $USER;
return $DB->get_records('choice_answers', array('choiceid' => $choice->id, 'userid' => $USER->id));
return $DB->get_records('choice_answers', array('choiceid' => $choice->id, 'userid' => $USER->id), 'optionid');
}