MDL-58888 mod_choice: Sort choice_get_my_response() results by optionid
This commit is contained in:
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user