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-19 12:50:47 +01:00
parent 3294034b80
commit c0a912e5ac
+1 -1
View File
@@ -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) {