MDL-23264 we need 3 answers in true/false

This commit is contained in:
Petr Skoda
2010-07-25 09:05:30 +00:00
parent c653e756e1
commit 10b8fefdf2
+2 -2
View File
@@ -270,13 +270,13 @@ class lesson_add_page_form_truefalse extends lesson_add_page_form_base {
public function custom_definition() {
$this->_form->addElement('header', 'answertitle0', get_string('correctresponse', 'lesson'));
$this->add_answer(0);
$this->add_answer(0, NULL, true);
$this->add_response(0);
$this->add_jumpto(0, get_string('correctanswerjump', 'lesson'));
$this->add_score(0, get_string('correctanswerscore', 'lesson'), 1);
$this->_form->addElement('header', 'answertitle1', get_string('wrongresponse', 'lesson'));
$this->add_answer(1);
$this->add_answer(1, NULL, true);
$this->add_response(1);
$this->add_jumpto(1, get_string('wronganswerjump', 'lesson'));
$this->add_score(1, get_string('wronganswerscore', 'lesson'), 0);