1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-14 13:02:07 +02:00

MDL-34226 multichoice qtype: correct is_complete_response for multianswer

The multianswer qtype uses the multi-choice one, and the way it does its
responses array breaks an assumption that multi-choice was making.
This commit is contained in:
Tim Hunt 2012-07-16 14:30:12 +01:00
parent 3294034b80
commit c0a912e5ac

@ -199,7 +199,7 @@ class qtype_multichoice_single_question extends qtype_multichoice_base {
}
public function is_complete_response(array $response) {
return array_key_exists('answer', $response);
return array_key_exists('answer', $response) && $response['answer'] !== '';
}
public function is_gradable_response(array $response) {