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

This commit is contained in:
Jun Pataleta
2017-12-15 15:56:19 +13:00
parent a6870770c3
commit 2444915544
+1 -1
View File
@@ -1012,7 +1012,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');
}